Home  >  Q&A  >  body text

WP_Textdomain_Registry::reset() method undefined call

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粉425119739P粉425119739334 days ago581

reply all(2)I'll reply

  • P粉317679342

    P粉3176793422023-10-25 22:59:52

    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

    reply
    0
  • 大瓶可乐@php.cn

    大瓶可乐@php.cn2023-10-26 17:59:02

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

    reply
    0
  • Cancelreply