Skip Navigation

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

Problem:

If you're experiencing a critical error when trying to create or sync menus between different language versions, it might be due to a conflict with your theme, particularly if you are using a child theme or a customized theme.

Solution:

First, ensure that you have not made any modifications to the parent theme that could be causing the issue. We recommend downloading the latest version of the theme (WoodMart in this case) and installing it on your staging site to see if the problem persists. If the issue continues, try switching to a default theme like Twenty Twenty-Four or Twenty Twenty-Five, create the menu, and manually translate it into English. Afterward, you can switch back to your original theme.

For more details on translating menus, please visit this documentation.

If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.

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 10 replies, has 0 voices.

Last updated by Bigul 3 weeks, 4 days ago.

Assisted by: Bigul.

Author Posts
April 22, 2025 at 11:00 am #16954696

michalZ-15

When I try to create a menu in the UA version to sync it with the EN version, I get a critical error, and no menu is created. Maybe it's connected?

April 22, 2025 at 11:16 am #16954811

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you resolve the issue.

This may be happening because the site contents are created in the English language and translated to UA language. So, please create a new menu for testing in English after a site backup and sync to UA language, and make sure it is working as expected or not.

If the problem remains, please share the WordPress debug.log (not WPML debug information) with us so we can collect more details on this. Refer to the following pages for instructions

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

To enable WordPress Debug log, open your wp-config.php file of the site root and look for define('WP_DEBUG', false);. Change it to:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me with that link, it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion.)

--
Thanks!

Bigul

April 28, 2025 at 10:57 am #16974451

michalZ-15

Hi, if I understand well, according to the previous ticket, you have made a local copy of the same website. So maybe you could trace the error there?

April 29, 2025 at 9:50 am #16978145

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I did a quick test on your staging site. Refer to the attached image. I hope this is the error you were referring to. Please verify, so we can proceed with further debugging.

--
Thanks!

Bigul

2025-04-29_15h14_44.png
April 29, 2025 at 11:13 am #16978540

michalZ-15

Yes (I think) I could not sync nor create menu in UA

April 29, 2025 at 3:20 pm #16980045

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. Will debug it with the main ticket and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

May 5, 2025 at 10:47 am #16995699

michalZ-15

I was checking progress on the 2 tickets I recently opened and I see that my previous ticket about missing gallery pictures was deleted... What happened?

May 5, 2025 at 3:38 pm #16997157

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. We are still working on both tickets. The main ticket has already been escalated to our second-tier team.

Apologies for the delay, which was due to the holidays. We will get back to you soon. Thank you for your patience.

--
Thanks!

Bigul

May 7, 2025 at 6:15 pm #17008411

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

We have completed several rounds of testing and explored possible workarounds. It appears that the fatal error occurs when creating or syncing the menu, likely due to a conflict with the child theme.

We tested this after updating to the latest versions of the plugins and deactivating all other plugins except WooCommerce, WoodMart Core, and WPML, but the issue persists.

Could you please confirm whether you have renamed or made any changes to the parent theme? If so, we recommend downloading the latest version of the WoodMart theme, installing it on your staging site, and checking whether the issue still occurs.

Please refer to the attached images for more details, and let us know your feedback.

--
Thanks!

Bigul

2025-05-07_23h15_41.png
2025-05-07_23h11_42.png
2025-05-07_23h11_06.png
May 13, 2025 at 10:30 am #17026506

michalZ-15

That's the effect of the "White Label" option within the theme (even after update) so should not make the difference.

May 13, 2025 at 1:57 pm #17028148

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. In this case, the only workaround is to temporarily switch the theme to a default theme like Twenty Twenty-Four or Twenty Twenty-Five, as the issue occurs both with and without WPML.

Then, create the menu and manually translate it into English. Once done, switch back to your site's original theme.

Refer to this doc for more details: https://wpml.org/documentation/getting-started-guide/translating-menus/#translate-menus-different-per-language

--
Thanks!

Bigul