Skip Navigation

[Gelöst] Fatal error caused by string translations plugin

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

There is a Fatal Error in string translation plugin:

Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset()

Solution:

Please update string translation to version 3.2.3 or later.

Relevant Documentation:

https://wpml.org/changelog/2022/10/wpml-4-5-12-updates-for-wordpress-6-1/

This support ticket is created vor 1 Jahr, 5 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by guyA-2 vor 1 Jahr, 5 Monate.

Assisted by: Christopher Amirian.

Author
Artikel
#2489329

Our client site is not loading after updating plugins. A fatal error is being caused by the string translation plugin.
I cannot provide debug information because of this fatal error.

Can you help us fix this ASAP?

Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /home/customer/www/mariabooxyoga.com/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139 Stack trace: #0 /home/customer/www/mariabooxyoga.com/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPML\ST\MO\Hooks\LanguageSwitch->resetTranslationAvailabilityInformation() #1 /home/customer/www/mariabooxyoga.com/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPML\ST\MO\Hooks\LanguageSwitch->changeMoObjects('sv_SE') #2 /home/customer/www/mariabooxyoga.com/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(48): WPML\ST\MO\Hooks\LanguageSwitch->switchToLocale('sv_SE') #3 /home/customer/www/mariabooxyoga.com/public_html/wp-includes/class-wp-hook.php(310): WPML\ST\MO\Hooks\LanguageSwitch->languageHasSwitched('sv') #4 /home/customer/www/mariabooxyoga.com/public_html/wp-in in /home/customer/www/mariabooxyoga.com/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139

#2490609

Christopher Amirian
Supporter

Languages: Englisch (English )

Hi there,

You need to ask about this in the WPML forum:

https://wpml.org/forums/forum/english-support/

But for your information, there is an issue with the string translation and WordPress version 6.1.

Here is how to fix that:

WP 6.1 introduces breaking changes that require updating WPML and String Translation before updating WordPress (see https://wpml.org/changelog/2022/10/wpml-4-5-12-updates-for-wordpress-6-1/).

Please update both WPML (4.5.12) and String Translation (3.2.3).

(If necessary, from the commercial tab of the Add New plugins page—which takes you to the custom WPML installer—click Check for Updates to see the current versions.)

If you cannot access the site because of the fatal error, you may need to use FTP to change the String Translation plugin folder name, which will deactivate it (see hidden link).

You can then delete it from the plugins page and reinstall it (with the latest version).

Please kindly follow up on the issue in the wpml support forum. Thanks.

#2490665

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.