Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call to undefined method WP_Textdomain_Registry::reset()

My Wordpress site is broken and only shows this error message:

Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139
Stack trace:
#0 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPML\ST\MO\Hooks\LanguageSwitch->resetTranslationAvailabilityInformation()
#1 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPML\ST\MO\Hooks\LanguageSwitch->changeMoObjects('view-subscripti...')
#2 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(167): WPML\ST\MO\Hooks\LanguageSwitch->switchToLocale('view-subscripti...')
#3 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(109): WPML\ST\Trans in /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139

I can only access the site after adding ".disabled" to the plugin folder (wpml-string-translation) name but this disables the plugin and the site needs it to work.

like image 842
Eloy Ruiz Avatar asked Feb 01 '26 16:02

Eloy Ruiz


1 Answers

It is a problem that is occurring with the update to wordpress 6.1.

To fix it you need to update WPML to 4.5.12 and String Translation to 3.2.3

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

-- Edit:

After downloading the two updated plugins, rename the two folders related to the plugins and install the updated versions to solve the problem

like image 131
Domenico Cornacchia Avatar answered Feb 04 '26 06:02

Domenico Cornacchia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!