我们在提供商 wpengine 上安装了 WordPress。当我们尝试更新某些插件时,我们在主题中遇到致命的 PHP 错误。提供商支持不知道如何帮助我们。这是错误的调用堆栈:
“PHP 致命错误:未捕获错误:调用 /nas/content/live/sillaindustrie/wp-includes/class-wp-textdomain-registry.php 中未定义的函数 Trailingslashit():103n堆栈跟踪:n# 0 /nas/content/live/sillaindustrie/wp-includes/l10n.php(784): WP_Textdomain_Registry->set('default', 'it_IT', '/nas/content/li...')n#1 / nas/content/live/sillaindustrie/wp-includes/load.php(1401): load_textdomain('default', '/nas/content/li...', 'it_IT')n#2 /nas/content/ live/sillaindustrie/wp-includes/load.php(278): wp_load_translations_early()n#3 /nas/content/live/sillaindustrie/wp-settings.php(74): wp_maintenance()n#4 /nas/内容/live/sillaindustrie/wp-config.php(67): require_once('/nas/content/li...')n#5 /nas/content/live/sillaindustrie/wp-load.php(50) : require_once('/nas/content/li...')n#6 /nas/content/live/sillaindustrie/wp-blog-header.php(13): require_once('/nas/content/li.. .')n#7 /nas/content/live/sillaindustrie/index.php(17): require('/nas/content/li...')n#8 {main}n 扔进 /nas /content/live/sillaindustrie/wp-includes/class-wp-textdomain-registry.php 第 103 行,参考:https://silla.industries/wp-admin/update-core.php?action=do-plugin-升级”
它似乎与 WPML 插件或类似插件有关,有什么建议吗? 谢谢 G.
我尝试更新 WordPress 插件,但我无法理解错误的来源。也许是插件不兼容,但我不知道如何发现它。
正如其他人所指出的,当
wp-includes/class-wp-textdomain-registry 中的代码时,
运行。这是WordPress 6.1 引入的问题。wp-includes/formatting.php
不可用,这是一个问题.php要解决此问题,您可以将
wp-includes/class-wp-textdomain-registry.php
中的第 103 行更改为:致: