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.
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.
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
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.)
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.
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?
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.
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.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.