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.

Our next available supporter will start replying to tickets in about 1.61 hours from now. Thank you for your understanding.

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

Problem: Synchronize translated navigation menus not working

Solution: Deleting the existing menus and creating new one solved the issue

This topic contains 7 replies, has 2 voices.

Last updated by erikav-3 1 year ago.

Assigned support staff: Shekhar Bhandari.

Author Posts
September 17, 2018 at 10:04 am #2740575

erikav-3

Hi there,

For the English and Dutch navigation menu, I created two menus in English and Dutch. They were synched/linked to eachother before.

Today, I noticed that all the English navigation menus, are set in Dutch. I cannot revert these back to English. I have tried to do so via WMPL > Sunch WP-menus. And directly via Appearance > Menus. Please take a look at the screenshots.

You will notice that the WMPL plugins need an update. Unfortunately, the update of WooCommerce Multilingual causes a 500 Internal Server Error. I am getting into that, and might open a new ticket for this issue.

Meanhwile, I would like to solve the navigation menu translation.
Could you inform me how to synch these again?

Thanks, Erika

September 18, 2018 at 9:12 am #2744165

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for contacting WPML support. I'd be happy to assist you further on this issue.

It seems while you try to synchronize the menu, there is some fatal error happening which is creating the issue. could you please perform the below steps and share me the results?

Debugging
1. Please follow the debugging information provided here: http://wpml.org/documentation/support/debugging-wpml/.
2. Repeat the action of creating the problem.
3. Copy and paste the contents of debug.log (log file inside the /wp-content/ directory) here for me to see.

Look forward to your reply.

Thanks

September 21, 2018 at 7:14 am #2754105

erikav-3

Hi Shekhar,

Thanks for your reply!

I duplicated the site on the url: hidden link, so we can test things out at ease.

Please take a look at the screenshots below, for more details in the backend and front of the site. As you will notice, there are 15 (!) menu's created, as the Dutch and English versions have been translated twice or more. For some reason, the main navigation does not show the correct English main menu.

Should I clean up the menu files by deleting all English versions of the menu's? And translate the 6 remaining Dutch menu's into English again?

Regards, Erika

Please find the debug.log details below:
[21-Sep-2018 06:45:04 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:45:07 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:45:11 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:45:28 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:45:30 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:45:40 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:45:43 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:46:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/wpml-menu-sync-functionality.class.php on line 38
[21-Sep-2018 06:46:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/wpml-menu-sync-functionality.class.php on line 38
[21-Sep-2018 06:46:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/wpml-menu-sync-functionality.class.php on line 38
[21-Sep-2018 06:46:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/wpml-menu-sync-functionality.class.php on line 38
[21-Sep-2018 06:46:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/wpml-menu-sync-functionality.class.php on line 38
[21-Sep-2018 06:46:26 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:46:29 UTC] add_to_cart_fragments is deprecated since version 3.0.0! Use woocommerce_add_to_cart_fragments instead.
[21-Sep-2018 06:46:29 UTC] The WC_Cart::get_cart_url function is deprecated since version 2.5. Replace with wc_get_cart_url.
[21-Sep-2018 06:46:30 UTC] add_to_cart_fragments is deprecated since version 3.0.0! Use woocommerce_add_to_cart_fragments instead.
[21-Sep-2018 06:46:30 UTC] The WC_Cart::get_cart_url function is deprecated since version 2.5. Replace with wc_get_cart_url.
[21-Sep-2018 06:46:32 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:46:33 UTC] add_to_cart_fragments is deprecated since version 3.0.0! Use woocommerce_add_to_cart_fragments instead.
[21-Sep-2018 06:46:33 UTC] The WC_Cart::get_cart_url function is deprecated since version 2.5. Replace with wc_get_cart_url.
[21-Sep-2018 06:46:38 UTC] PHP Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:46:39 UTC] add_to_cart_fragments is deprecated since version 3.0.0! Use woocommerce_add_to_cart_fragments instead.
[21-Sep-2018 06:46:39 UTC] The WC_Cart::get_cart_url function is deprecated since version 2.5. Replace with wc_get_cart_url.
[21-Sep-2018 06:50:15 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:50:23 UTC] PHP Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:50:24 UTC] add_to_cart_fragments is deprecated since version 3.0.0! Use woocommerce_add_to_cart_fragments instead.
[21-Sep-2018 06:50:24 UTC] The WC_Cart::get_cart_url function is deprecated since version 2.5. Replace with wc_get_cart_url.
[21-Sep-2018 06:51:03 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:51:05 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:52:20 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:52:23 UTC] PHP Notice: WC_Cart::get_cart_url is verouderd sinds versie 2.5. Gebruik in plaats daarvan wc_get_cart_url. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Undefined property: WP_Error::$term_id in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:29 UTC] PHP Notice: Undefined property: WP_Error::$name in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Undefined property: WP_Error::$term_id in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:30 UTC] PHP Notice: Undefined property: WP_Error::$name in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-content/plugins/storekit-extension/widgets/modules/category.php on line 505
[21-Sep-2018 06:54:44 UTC] PHP Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:56:43 UTC] PHP Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /var/www/vhosts/erikavanwijk.nl/httpdocs/dejong/wp-includes/functions.php on line 3853
[21-Sep-2018 06:56:45 UTC] add_to_cart_fragments is deprecated since version 3.0.0! Use woocommerce_add_to_cart_fragments instead.
[21-Sep-2018 06:56:45 UTC] The WC_Cart::get_cart_url function is deprecated since version 2.5. Replace with wc_get_cart_url.

September 21, 2018 at 10:20 am #2754882

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Should I clean up the menu files by deleting all English versions of the menu's? And translate the 6 remaining Dutch menu's into English again?

Yes, you can try this one.

If the problem still exists, I need to request temporary access (wp-admin and FTP) to your site in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link

This info is private and available to you and supporters only. Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note that:

#1
Backup (both files and database) your site before giving us your credentials. You can use a plugin for this if you like. I often use the Duplicator plugin for this purpose.
See: http://wordpress.org/plugins/duplicator/

Duplicator instruction
hidden link

#2
It would be better if you give me the test site rather than the live site.

#3
If the issues need some changes in the plugins updates/disabling we will install a plugin called “duplicator” and replicate the site in our local server for testing.

Look forward to your reply.

Thanks

September 24, 2018 at 9:32 am #2760034

erikav-3

Hi Shekhar,

Deleting the existing menus and creating new one, including translated ones, seems to be working. Lets hope this is the solution. I will change the live site today as well.

The plugin Wordfence emailed the following message:
"Critical Problems: * Publicly accessible config, backup, or log file found: wp-content/debug.log"

Can I delete this file, without any issues?

Thanks! Erika

September 24, 2018 at 9:38 am #2760049

erikav-3

Hi Shekhar,

I forgott the following. The menu overview states 9 Dutch menus, instead of 6 menus.

Via WPML > Synch WP-menus I noticed that three product details, are a "menu"? I tried to delete these three "menus" via Appearance > Menus. But there, these three "menus" cannot be selected. Can you advise me how to solve this?

Thanks, Erika

September 25, 2018 at 7:19 am #2762778

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Yes, you can remove the debug.log

Regarding the menu, it seems like some plugins/themes must be auto-generating that menus If you disable all non-related WPML plugins, switch to one of the default themes, the problem persists or not?
NOTE:
+ Make a backup (both files and database) for your site before updating/proceeding anything (Always a good practice!).

Further, could you please go to WPML-> Support ->Troubleshooting and click the below buttons and let me know if that helps:

+ Set Language information
+ Clear Cache in WPML
+ Fix element types collation
+ Assign translation status to the duplicated content

Look forward to your reply.

Thanks

October 1, 2018 at 11:34 am #2777825

erikav-3

My issue is resolved now. Thank you!