Home›Support›English Support›[Resolved] WPML String Translation plugin causes critical error for part of one category Woocomerce product lin...
[Resolved] WPML String Translation plugin causes critical error for part of one category Woocomerce product lin...
This thread is resolved. Here is a description of the problem and solution.
Problem: After updating WPML and other plugins, a critical error occurs on some WooCommerce product pages when the WPML String Translation plugin is active. Deactivating the plugin resolves the issue temporarily. Solution: To permanently fix the issue, modify the code in two files: 1. Navigate to
After making these changes, save the files. This solution was successfully applied to a staging site, resolving the issue.
Please note that this solution might be outdated or not applicable to your specific case. If the problem persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket.
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.
Thank you very much for creating the staging site.
I ran several troubleshooting steps, but the issue persists. For this reason,n I have escalated this ticket to our 2nd tier of support, where our 2nd tier specialists will take a deeper look and isolate the cause.
I will keep you updated on the evolution of this ticket.
Thank you very much for your patience and understanding!
Yes, those products were imported (year ago), but everything worked perfectly till last update. And there are still some products which was imported as well and they are working (for example screenshot from one subcategory attached - everything was imported together, but 2 of those products are working fine)
1. Structure is almost the same. In products, which are not working, there are 2 different type attributes (izvada tips and līmeņrādis) and a bit different description. Tried to delete them - issue persists. So I tried to delete elements one by one and deleted pictures as well - still the same even there is just the product title and the category.
2.If I make a new product in the same category - no problem.
3. If I copy existing product, which is not working- still the same (even if I delete all the information, leaving just product title and category). I tried to change copied products category - problem persists.
But if I copy exiting product, which is working - there are no problems at all.
Please add these changes to the code to solve the problem:
- Go to /wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/DataConvert.php and overwrite the current unserializeString function to:
- Go to /wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/Hooks/QueryFilter.php and overrwrite the current translateQueryIds function to:
Copied code, which You gave me in previous answer. It messed up all site... But as You said, that in staging site You have added this code and everything works, copied code from there and everything is working fine now! Hope the problem is solved and won't reappear!