Error on WooCommerce Multilingual plugin
-
Hello,
I have a website with:
Woocommerce + WPML + WooCommerce Multilingual
It get me error on generating Category Product Page on some original languge product categories and no Category Product Page on translated product categories.
All versions are the last plugin versions, I bought WPML this days.
It worked well till yesterday and now it’s all KO.
Thanks
-
My site is https://www.mdo-didactics.com/
Hello Ptrlvasile,
can you please post here error message from log?Email from server:
Howdy!
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, WooCommerce Multilingual.
First, visit your website (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mdo-didactics.com%2F&data=02%7C01%7C%7Cd1f8d116f87e45d566d508d6eefd54df%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636959169147770565&sdata=hWOcg35vT7AZ%2BA5WoAD3S90U5FVvXzXT7cBDp1Q1vcg%3D&reserved=0) and check for any visible issues. Next, visit the page where the error was caught (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mdo-didactics.com%2Fwp-admin%2Fcustomize.php%3Freturn%3D%252Fwp-admin%252F&data=02%7C01%7C%7Cd1f8d116f87e45d566d508d6eefd54df%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636959169147770565&sdata=ordryppyjQujkfadeTJFHKbiVJMFNrG3eJJPcWoRBFA%3D&reserved=0) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
Error Details
=============
An error of type E_ERROR was caused in line 53 of the file /var/www/vhosts/mdo-didactics.com/httpdocs/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/TokenParserBroker.php. Error message: Uncaught TypeError: Argument 1 passed to Twig_TokenParserBroker::addTokenParser() must be an instance of Twig\TokenParser\TokenParserInterface, instance of Twig_TokenParser_For given, called in /var/www/vhosts/mdo-didactics.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php on line 1507 and defined in /var/www/vhosts/mdo-didactics.com/httpdocs/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/TokenParserBroker.php:53
Stack trace:
#0 /var/www/vhosts/mdo-didactics.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(1507): Twig_TokenParserBroker->addTokenParser(Object(Twig_TokenParser_For))
#1 /var/www/vhosts/mdo-didactics.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(1459): Twig_Environment->initExtension(Object(Twig_Extension_Core))
#2 /var/www/vhosts/mdo-didactics.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twigPlugin upgraded
From English Shop Page https://www.mdo-didactics.com/shop/
Error pages:
https://www.mdo-didactics.com/product-category/dental-implants/
https://www.mdo-didactics.com/en/product-category/gadgets/
https://www.mdo-didactics.com/en/product-category/hygienists/
https://www.mdo-didactics.com/en/product-category/prosthesis/All OK on translateg pages
Problem with Twig library is solved in 4.6.5 version so you shouldn’t have this error anymore.
Can you please check category pages one more time but with 4.6.5 version?
Also which versions of WPML plugins you’re using?
As I can see there nothing to do with twig Error.
Looks like you have another problem with categories and to debug it I need access to your admin.
Can you please open a ticket on our support https://wpml.org/forums/forum/english-support/ where you can share your details in safe form
Thanks
WPML Multilingual CMS Version 4.2.6
Still have the problem with those 4 Product Categoy PagesOne easy thing which you can try – re-save permalinks if not help please open a ticket on wpml.org and continue there
The topic ‘Error on WooCommerce Multilingual plugin’ is closed to new replies.