This thread is resolved. Here is a description of the problem and solution.
Problem:
WP Menu Sync doesn't respect the menu items hierarchy.
Solution:
1- Go to WPML-> Settings-> Custom Fields Translation section
2- Click "Show System Fields"
3- Search for " _menu_item_menu_item_parent"
4- Set the the field to "Don't Translation" and save
5- Edit the menu in the default language and update it
6- Sync the menus
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: Exception
This topic contains 5 replies, has 2 voices.
Last updated by Osama Mersal 1 year, 3 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
October 30, 2023 at 7:54 am #14688771 | |
pierreB-13 |
I am trying to: Sync the menu from german to french. Link to a page where the issue can be seen: hidden link (the navigation is correct now as I set the french navigation manually instead of syncing) I expected to see: the same navigation in french as in german (first screenshot) Instead, I got: the structure is broken, or depending on the content some items are missing or duplicated. (second screenshot) The Sync is working well with the WPML 4.4.12. After updating to Version 4.6.7, it was not working anymore. |
October 30, 2023 at 10:11 am #14689823 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. 1) Do you have a staging site where we can replicate and debug the issue? 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, |
October 30, 2023 at 5:30 pm #14694165 | |
pierreB-13 |
Hi Osama, Thank you for your quick reply. 1. I have set up a staging site under dev.baldinger-ag.ch 2. I have updated the memory limit best regards, |
October 30, 2023 at 7:57 pm #14694927 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Pierre, I would need to request temporary access (WP-Admin and FTP) Your following answer will be private, which means 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 site. Best regards, |
November 1, 2023 at 2:39 pm #14708285 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Pierre, Thanks for the access details. I checked the issue and was able to reproduce it on a newly created menu, so I consulted our 2nd tier support team regarding the issue and will update you as soon as I get their reply. The issue only happens on your site because I tested on a sandbox site, and the sync menu option works correctly. (hidden link) Best regards, |
November 3, 2023 at 9:39 am #14724005 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for your patience. Our 2nd tier support team found that there is a field set to copy while it should be "Not translatable". In order to fix the issue, please check the following steps: 1- Go to WPML-> Settings-> Custom Fields Translation section Kindly let me know if the above steps fixed the issue for you. Best regards, |