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.

This topic contains 5 replies, has 2 voices.

Last updated by Carlos Rojas 4 months ago.

Assigned support staff: Carlos Rojas.

Author Posts
June 12, 2019 at 7:35 am

trudieS

Hey guys,
We updated everything on our site, WP and WPML plugins, and Wooocommerce multilingual 4.6.4 generates a fatal error and we can't access to our backend.

in the minewhile, we have deactivated Woocommerce multilingual.
Can you please let us know what to do to get it working again?

Bests.

Error Details
=============

An error of type E_ERROR was caused in line 53 of the file /var/www/vhosts/goprimal.eu/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/goprimal.eu/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php on line 1507 and defined in /var/www/vhosts/goprimal.eu/httpdocs/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/TokenParserBroker.php:53
Stack trace:
#0 /var/www/vhosts/goprimal.eu/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/goprimal.eu/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/goprimal.eu/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(1381

June 12, 2019 at 7:46 am #4001265

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

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

Kind regards,
Carlos

June 12, 2019 at 7:59 am #4001433

trudieS

Hey Carlos, thank you.

Just one last doubt.
Now we got installed 4.6.4 (deactivated) and 4.6.3 (We just installed this and activated).

Everything runs smoothly now.
Can we delete safely 4.6.4? When I click on delete it says:

"Are you sure you want to delete WooCommerce Multilingual and its data?"

I don't want to lose translations deleting the 4.6.4 deactivated version.

Let me know something please,
Have a nice day!

June 12, 2019 at 8:07 am #4001549

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi there,

Please only remove the folder of the plugin, don't uninstall it from the backend interface.

Regards,
Carlos

June 12, 2019 at 8:34 am #4001945

trudieS

well, folder is just renamed. But I seel both versions installed in the backend... I supose we will be able to delete it from the backend too when the new version is stable right?

June 12, 2019 at 8:58 am #4002111

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi there,

The best option is to delete the folder of the latest version of the plugin in the wp-content/plugins folder.

Regards,
Carlos