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.

Author Posts
June 12, 2019 at 6:54 am #4000899

maxP-8

Hello,

After updating I have a Fatal PHP Error wich is breaking my site. I cannot add or edit products anymore from the wp-admin backend. Here you can see the issue in my error log

2019/06/12 06:37:46 [error] 16673#16673: *1939349 FastCGI sent in stderr: "PHP message: PHP Fatal error: 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 /www/ireloca_257/public/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php on line 1507 and defined in /www/ireloca_257/public/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/TokenParserBroker.php:53
Stack trace:
#0 /www/ireloca_257/public/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(1507): Twig_TokenParserBroker->addTokenParser(Object(Twig_TokenParser_For))
#1 /www/ireloca_257/public/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(1459): Twig_Environment->initExtension(Object(Twig_Extension_Core))
#2 /www/ireloca_257/public/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(1381): Twig_Environment->initExten" while reading response header from upstream, client: 178.165.131.81, server: ireloca.com, request: "GET /wp-admin/post.php?post=17270&action=edit&lang=de&message=6 HTTP/1.0", upstream: "hidden link:", host: "ireloca.com", referrer: "hidden link"

Please help

Best regards,
Raymond

June 12, 2019 at 7:34 am #4001161

redaE-2

Have the same problem here

June 12, 2019 at 7:54 am #4001309

mortenV-2

We have the same problem. Hope for a quick fix 🙂

June 12, 2019 at 8:16 am #4001683

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support!

Please revert the update and re-install the previous version. This is a known issue and our developers are working on a solution.

Regards,
Bruno Kos

June 12, 2019 at 9:10 am #4002249

loudS

What version is safe to use?

July 3, 2019 at 11:53 am #4135603

maxP-8

My issue is resolved now. Thank you!