Home > other >  Call to undefined method WP_Textdomain_Registry::reset()
Call to undefined method WP_Textdomain_Registry::reset()

Time:11-03

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.

CodePudding user response:

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

CodePudding user response:

I just removed string 139. Everything is working at the moment

CodePudding user response:

Same problem here, updated WPML plugins downloading from WPML.org and now working.

  • Related