skip to Main Content

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): 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 site after adding ".disabled" to the plugin folder (wpml-string-translation) name but this disables the plugin and the site needs it to work.

5

Answers


  1. 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

    Login or Signup to reply.
  2. I just removed string 139. Everything is working at the moment

    Login or Signup to reply.
  3. Had the same issue today.

    This issue is due to none updated version of WPML and compatibility with 6.1 WordPress. Since WPML website is today down and you can not download the plugin.

    There is github repository:

    https://github.com/youssef-lmw/wpml-string-translation

    1. Download this version of the plugin

    2. List item replaces current one in wpml-string-translation folder

    Login or Signup to reply.
  4. While the WPML.org site is down, you can downgrade WordPress itself to version 6.0, either

    Login or Signup to reply.
  5. I downloaded https://github.com/youssef-lmw/wpml-string-translation/archive/refs/heads/main.zip an remplace wpml-string-translation folder in wp-content/plugins/wpml-string-translation and fixed problem.

    WPML String Translation for WordPress 6.1
    FIX error: Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset()

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search