Meine WordPress-Site ist kaputt und zeigt nur diese Fehlermeldung an:
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
Ich kann erst auf die Website zugreifen, nachdem ich „.disabled“ zum Namen des Plugin-Ordners (wpml-string-translation) hinzugefügt habe, aber dadurch wird das Plugin deaktiviert und die Website benötigt es, um zu funktionieren.
这是更新到 wordpress 6.1 时出现的问题。
要修复此问题,您需要将 WPML 更新到 4.5.12,将字符串翻译更新到 3.2.3
来源:https ://wpml.org/changelog/2022/10/wpml-4-5-12-updates-for-wordpress-6-1/
--编辑:
下载两个更新的插件后,将与插件相关的两个文件夹重命名并安装更新版本即可解决问题
v自行车V型不错VB下错VB下错v