【发布时间】:2022-11-14 20:42:12
【问题描述】:
自动更新我的 WordPress 安装后,我的网站显示此错误而不是加载。
Deprecated: File wp-db.php is deprecated since version 6.1.0! Use wp-includes/class-wpdb.php instead. in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5595
Warning: require(/home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/class-wp-dependencies.php): failed to open stream: No such file or directory in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/script-loader.php on line 23
Fatal error: require(): Failed opening required '/home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/class-wp-dependencies.php' (include_path='.:/usr/share/pear/') in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/script-loader.php on line 23
Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5835
Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5835
There has been a critical error on this website.
有人可以帮我理解这个错误,并为我提供解决方案或一些提示,以便我可以解决这个问题。
【问题讨论】:
-
您使用的 WordPress 版本低于 6.1.0。在您的主题中,有些地方调用了文件“wp-db.php”,但在 6.1.0 版之后,WordPress 不再支持它。转到您的 web cPanel 并将主题更改为 WordPress 默认值。在第 23 行的 {/home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/script-loader.php} 请求的文件也丢失了。