Sauter la navigation

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Fuseau horaire du supporter: Asia/Dhaka (GMT+06:00)

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par Prosenjit Barman Il y a 11 mois.

Assisté par: Prosenjit Barman.

Auteur Articles
janvier 1, 2024 à 7:19 pm #15139811

anaisC-3

Bonjour,

mon site est présenté en 3 langues : fr - nl - en. Ma langue principale est le fr. Mon menu a été traduit automatiquement en nl et en. Dans mon sous-menu, il y a une partie qui pointe sur des ancres dans une page. Ces nominations ne sont pas traduites ni sur le nl ni sur le en. Du coup, j'aurais le besoin de modifier les traductions. Pour ce faire, je vais dans Apparences > Menu > Je sélectionne mon menu principal et j'appuie sur le petit + à côté du mot nl. Là une nouvelle fenêtre Structure du menu me demande le Nom du menu et divers réglages. Lorsque je donne un nom du menu et que je clique sur l'un ou l'autre réglage, je valide ma démarche sur Créer le menu, alors rien ne se passe. La fenêtre se recharge sur la même page avec les mêmes infos à renseigner. J'ai fait le test sur Safari comme sur Firefox, je rencontre toujours le même problème.
Au simple clic n'importe où dans la rubrique, le nombre entre parenthèse à côté du FR s'incrémente en flèche...
Aussi, sur la version en, la structure du menu est chamboulée. Contrairement à celle du nl qui est bien conservée par rapport à la version fr...
Avez-vous déjà eu des bugs de ce type ? Que dois-je faire pour débloquer ma situation ?
D'avance merci de votre retour,
bien à vous,
Anais

janvier 2, 2024 à 10:50 am #15142920

Prosenjit Barman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello Anais,
Thanks for contacting WPML Support.

As most of our French supporters are on vacation, I took this ticket and responded in English to reduce the waiting time. Please let me know if you're okay with it or prefer to continue the conversation in French. If so, I will arrange for one of our French-speaking colleagues to assist you.

As far as I understood(by translating), when you try to add a translation for the menu and save its name, the page reloads, and ask you to create the menu once again.

If my understanding is correct, the problem you're experiencing might be related to caching issues. From the WPML Debug information, i noticed that multiple optimization plugins are installed on your site. Could you please clear the caches in these plugins and your browser, and then recheck the issue?

Additionally, I also noticed that you're using an asset unloader plugin (Asset CleanUp) on your site. Would you please check and confirm that no assets required for the Menu creation page have been unintentionally unloaded?

If the issue persists after that, you can synchronize the menu first and then try to edit the Translated menu. To understand the process of synchronizing menu please check the guide below.

- https://wpml.org/documentation/getting-started-guide/translating-menus/#option-3-automatic-menus-sync-by-wpml

Please let me know if any of the suggestion helped or if you need further assistance in this matter. I will be happy to help.

Best regards and wishing you a happy new year!
Prosenjit

janvier 2, 2024 à 8:42 pm #15144744

anaisC-3

Hello Prosenjit,

thanks for your wishes, I wish you a happy new year too.

I cleared the caches but the issue stayed the same. So I turned off the optimisation plugins (Asset CleanUp, Async JavaScript, Autoptimize, Cache Enabler and a few other ones) but there were no changes in my issue.
I already tried to synchronize the menu, it doesn't help. Unfortunately.

My issue is : actually, I made 2 menu's in French (header primary and footer). When I clicked on the plus icon (now the pen) next to EN or NL of my primary nav, I had (and still have) to create my "first menu" in this langage. When I try to save the structure, then the page is reloaded without any change = I still have to create my "first menu".
I seems I have to create my "first menu" but on the left side, under the title "Add menu items", it shows me "NL(3) l EN (2) l FR (667!!!)".
So the menu's in English and Nederlands still exist, I think... And a phenomenal huge number of menu's in French... Although I only can choose 2 of them (the 2 real menu's I made) in the selection to edit it... And none in my secondary langages.
🤯
Best regards,
Anais

janvier 3, 2024 à 6:31 am #15145249

Prosenjit Barman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hi Anais,
Thank you for clarifying the issue.

It seems something within the site is interfering with the menu-saving process in other languages. Could you please let me know if you have tried disabling all other plugins, keeping only WPML and its add-ons activated?

If the issue persists even after that, a closer inspection will be required to understand the root cause. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
lien caché

Looking forward to your response.

Best Regards,
Prosenjit

janvier 4, 2024 à 11:14 am #15150250

Prosenjit Barman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello Anaïs,
Thank you so much for sharing the access information.

I have thoroughly checked the issue and including my findings below.

Initially, I followed your instructions and tried to create menus in other languages. However, this did not result in the formation of new menus. Instead, the count next to the default language kept increasing, unexpectedly reaching over 4,000. Moreover, whenever I tried to navigate to other pages, even without changing anything in the default menu, a prompt appeared, asking me to save changes before proceeding, despite no modifications being made to the menu.

Subsequently, I reviewed all settings in WPML related to the navigation menu but didn't identify any problems there.

Next, I investigated whether the issue persisted with the WPML plugin disabled. Interestingly, I found that it was impossible to create a menu even when WPML was deactivated. You might also try creating a menu with WPML disabled to see this for yourself.

So based on the investigation, I can say that the problem you're experiencing is not due to WPML, as the inability to create a menu occurs even without the WPML plugin. It suggests that something within the site is impacting the default menu functionality of WordPress, leading to this issue.

Since the WPML is not the root cause here, it is difficult to say what is causing issue with the Menu. But, I'd suggest to check by switching to a default WordPress theme and deactivating all plugins on your site to see if the menu creation issue persists. If this resolves the problem, then reactivate your original theme and try to create the menu again. If the issue reappears at this point, it's likely that the theme is the source of the problem. In such a case, contacting the theme's support team for assistance would be advisable.

However, if you're able to create the menu without any issues after reactivating your theme, then proceed to reactivate your plugins one by one. Continuously check if the problem reappears after each plugin activation. This method will help you identify the specific plugin causing the issue.

If neither of these steps resolves the problem, consider reinstalling your WordPress installation. It's possible that changes have been made to the WordPress core, especially those related to the menu system, might be causing the issue. Reinstalling WordPress should remove any manual changes made to its core, potentially resolving the problem. Before doing so, ensure that you have a complete backup of your site and database for safety.

I hope you can understand. Please feel free to let me know if you have any other query or need assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

janvier 4, 2024 à 9:45 pm #15153045

anaisC-3

Hello Prosenjit,

so, I followed your advices : I turned all my plugins off, I deactivated my theme and activated a default theme. I tried to create a new menu and it still doesn't work 🙁 So the problem seems not to be linked with my plugins and my theme.
So I overwrited the wordpress php files from the root, my folders wp-admin and wp-includes. No changes in my issue :((
So I don't see any solution left...

Is there an other way to edit the translation of the menu ?

Best regards,
Anaïs

janvier 5, 2024 à 12:05 pm #15154255

Prosenjit Barman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello Anais,
I can understand your situation.

Because the menu's Translation preference is set to translatable, my suggestion would be to edit its translation. You can do this by navigating to "WPML > Translation Management > Post Type Dropdown → Navigation Menu" and initiating the translation of the Nav menu. However, upon checking, it seems that no menu is appearing in that section, as if the menu is completely unavailable.

Therefore, I recommend verifying whether the issue occurs on a new installation on the same server where the production site is hosted. if the issue happening in the fresh installation, then you can consult with the hosting support to check why the issue is happening. But, I strongly suspect that there may have been changes made within the WordPress core, which could be the reason why the Menu is not functioning as expected.

Additionally, I'd like to mention that during my research, I discovered several users reported that disabling "ModSecurity" often resolves issues with menus similar to what you're experiencing. If yu want, you could try disabling it. To disable ModSecurity, please contact your hosting support and request them to do so for your site. You can find more information on this topic by visiting the search result link provided below.

- lien caché

If that also doesn't solve the issue, it would be better if you could create a thread in WordPress support as the issue is happening while creating the menu even after keeping all plugins and themes disabled. I hope someone from the WordPress team/community will assist you in this matter. I hope you can understand.

Feel free to share the update or anything else I can help you with. I will be happy to assist.

Best regards,
Prosenjit

Le sujet '[Fermé] Traduction du menu' est fermé aux nouvelles réponses.