Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing issues with the layout of the home page when switching to the French language, and sometimes pages would disappear after modifications. The problem seemed to be primarily with the navigation menu.
Solution:
1) We permanently deleted the menu items that were in the trash and re-translated the pages. Then, we deleted the French menu and synced the menu again, which resolved the menu issue.
2) For the home page layout issue, we suggested that the client re-create the affected section in the default language and then update the translation to see if the issue persists.

If you're experiencing similar issues, we recommend you try the following steps:
- Permanently delete any menu items in the trash and re-translate your pages.
- Delete the problematic menu and sync it again.
- Re-create any sections of your home page that are not displaying correctly in the default language, and then update the translation.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If these steps do not resolve your issue, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 7 months ago.

Assisted by: Osama Mersal.

Author Posts
January 22, 2024 at 10:13 am #15210322

bertV-31

Dear,

Every time I switch to the French language, the layout of my home page is no longer correct. Sometimes pages also disappear after I make a modification. It seems to be primarily an issue with the navigation menu. Can you assist me in ensuring that the synchronization runs smoothly?

Thank you in advance.

Best regards,
Lore

clicked on the menu itself it lookes good.png
fr bug page after clicked on the language switcher.png
January 22, 2024 at 12:59 pm #15211468

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Lore,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please let me know how this price table is created in the default language. Do you use custom Elementor widgets or templates for this section?

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

January 22, 2024 at 1:16 pm #15211516

bertV-31

Hi Osama,

Thank you for your clear response.

All pages are created using Elementor.

To access the wp-config.php file, do I need to install an FTP app, or can I also access it through WordPress itself?

Thanks,

Best regards,
Lore

January 22, 2024 at 1:18 pm #15211525

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Lore,

1) Please create a test page and use this price table widget, translate the page, and check if the issue persists.

2) You can access the file using FTP or install the File Manager plugin on your site (WordPress dashboard).

Best regards,
Osama

January 22, 2024 at 1:27 pm #15211557

bertV-31

Hi Osama

Thank you. I will install the File Manager.

1) It's not a widget; I manually created these formulas using columns, styles, and text. Moreover, the layout issue is not limited to the formula alone.

Best
Lore

January 22, 2024 at 1:32 pm #15211568

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Lore,

I see that the issue is only in this section. Kindly check this video. (hidden link)

Please copy this section to a new test page to reproduce the issue.

If the issue is replicable, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

January 22, 2024 at 2:29 pm #15212072

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Lore,

Thanks for the access details. I deleted all other sections and kept only the problematic section.

After that, I translated the page using the WPML translation editor. Please check it and let me know if it works correctly.

French: hidden link

Dutch: hidden link

Best regards,
Osama

January 23, 2024 at 9:53 pm #15219041

bertV-31

Hi Osama

Thanks for your help.

But I think there is a misunderstanding. Could you also delete the pages directly after testing them? An additional page was appeared in the navigation menu. I already deleted it this morning.

The language switcher is not functioning properly. Please try it yourself. The pages themselves are translated correctly, but when the switcher is used, these errors occur.

Can you check into this?

Best,
Lore

January 23, 2024 at 10:13 pm #15219048

bertV-31

Hi Osama

When I switch to the French language, the page is still in Dutch. BUT, when I click on "Accueil" in the navigation menu, it shows the correct page. Please see the screenshot.

I think it's because a incorrect synchronisation between both menu's...

Thanks in advance.

Best,
Lore

Schermafbeelding 2024-01-23 231249.png
Schermafbeelding 2024-01-23 231045.png
January 23, 2024 at 10:35 pm #15219105

bertV-31

The slug name for the French home page also needs to be updated. It doesn't make sense to append "accueil" at the end. Just /fr would suffice.

Schermafbeelding 2024-01-23 233340.png
January 24, 2024 at 9:56 am #15220734

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Lore,

1) The messing menu items were in the trash, so I deleted them permanently and re-translated the pages. After that, I deleted the French menu and synced the menu, which fixed the menu issue.

2) For the home page, I tested it with our test page, and it works correctly when using the language switcher. (hidden link)

The layout issue happens only on the home page when switching the language. Would you please re-create this section in the default language and update the translation to check the issue?

Best regards.
Osama

January 24, 2024 at 8:52 pm #15223960

bertV-31

Hi Osama

Thank you.

1) Ok I will check that!

2) It does not work! Please see the screenshot attached. Now the Dutch "home" page is on the French website. That's incorrect! Please make sure that the homepage of the French is the correct language (Accueil).

I will try to make the translations again in WPML, hopefully it will works well then.

Best,
Lore

Schermafbeelding 2024-01-24 203006.png
January 24, 2024 at 10:59 pm #15224152

bertV-31

Hi Osama

I think I have fixed the language switcher. After I have made the French translations on the Dutch page, it worked.

Only I have still one more issue. When I want to translate the Dutch homepage to French, it's still giving the copy of the old version. Even the old text is not visible anymore.

Best,
Lore

Schermafbeelding 2024-01-24 235414.png
Schermafbeelding 2024-01-24 235740.png
January 25, 2024 at 10:39 am #15225542

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Lore,

Thanks for your updates. I found that you have a home page in the trash, so I deleted it. Please make sure to empty the trash after deleting posts/pages.

After that, I updated the current home page, and when checking the translation editor, I can see the new updated strings. (Kindly check the attached screenshot)

Please let me know if it works correctly.

Best regards,
Osama

2024-01-25_12-37-10.jpg
January 26, 2024 at 1:26 pm #15230366

bertV-31

Hi Osama

For now, everyting works well. Thank you for your instructions and help!

Best,
Lore