WP_Textdomain_Registry::reset() method undefined call
P粉425119739
P粉425119739 2023-10-24 23:49:26
0
2
626

My WordPress site is broken, showing only 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): WPMLSTMOHooksLanguageSwitch->resetTranslationAvailabilityInformation()
#1 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPMLSTMOHooksLanguageSwitch->changeMoObjects('view-subscripti...')
#2 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(167): WPMLSTMOHooksLanguageSwitch->switchToLocale('view-subscripti...')
#3 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(109): WPMLSTTrans in /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139

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

P粉425119739
P粉425119739

reply all(2)
P粉317679342

This is a problem when updating to wordpress 6.1.

To fix this issue you need to update WPML to 4.5.12 and string translations 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 plug-ins, rename the two folders related to the plug-ins and install the updated version to solve the problem

大瓶可乐@php.cn

vThe V-shaped bicycle is good VB is wrong VB is wrong v

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!