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
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.
My issue is resolved now. Thank you!