简体   繁体   English

致命错误:在第 317 行调用 /public_html/wp-includes/load.php 中未定义的函数 apply_filters()

[英]Fatal error: Call to undefined function apply_filters() in /public_html/wp-includes/load.php on line 317

I tried to update my wordpress installation using auto update feature.我尝试使用自动更新功能更新我的 wordpress 安装。 After update the entire site is down.更新后整个网站都关闭了。 Checking the log file I have this error:检查日志文件我有这个错误:
Fatal error: Call to undefined function apply_filters() in /public_html/wp-includes/load.php on line 317
I found this github issue.我发现了这个 github 问题。 But they refer to solving the issue for installation that uses wp-cli .但他们指的是解决使用wp-cli安装问题。 Any help would be appreciated.任何帮助,将不胜感激。
https://github.com/wp-cli/wp-cli/issues/2953 https://github.com/wp-cli/wp-cli/issues/2953

This problem was caused by the wp-settings.php .这个问题是由wp-settings.php引起的。 Due to permissions trouble this file was not updated while using auto-update.由于权限问题,此文件在使用自动更新时未更新。 Replacing this file with the latest wp-settings.php solved the trouble.用最新的wp-settings.php替换这个文件解决了这个问题。

i just add and use this line to my plugin file我只是在我的插件文件中添加并使用这一行

require_once( dirname( FILE ) . '/../../../../wp-includes/plugin.php'); require_once( dirname( FILE ) . '/../../../../wp-includes/plugin.php');

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 wordpress:致命错误:在行339上wp-includes / load.php中调用未定义函数is_wp_error() - wordpress: Fatal error: Call to undefined function is_wp_error() in wp-includes/load.php on line 339 如何从位于public_html文件夹中的php脚本中的wp-includes调用函数? - How to call a function from wp-includes in a php script located in my public_html folder? 致命错误:在第26行的/home/site/public_html/wp-settings.php中调用未定义的函数wp_initial_constants() - Fatal error: Call to undefined function wp_initial_constants() in /home/site/public_html/wp-settings.php on line 26 警告:require(/wp-includes/load.php)[function.require]:无法打开流 - Warning: require(/wp-includes/load.php) [function.require]: failed to open stream Wordpress 致命错误:未捕获的错误:调用 /wp-includes/wp-db.php:1570 中未定义的函数 mysql_connect() - Wordpress Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php:1570 /home/servupgg/public_html/wp-includes/class-wp-list-util.php 中的 stdClass::$plugin 位于第 152 行 - stdClass::$plugin in /home/servupgg/public_html/wp-includes/class-wp-list-util.php on line 152 require(public_html / mywebsite / wp-includes / post.php):无法打开流:第142行的public_html / mywebsite / wp-settings.php中的权限被拒绝 - require(public_html/mywebsite/wp-includes/post.php):failed to open stream: permission denied in public_html/mywebsite/wp-settings.php on line 142 在第579行的…/ public_html / includes / menu.inc中调用未定义的函数menu_load() - Call to undefined function menu_load() in …/public_html/includes/menu.inc on line 579 致命错误:未捕获错误:调用 /home/customer/www/monkinsider.com/public_html/wp-blog-header.php:16 中未定义的 function wp() 堆栈跟踪: - Fatal error: Uncaught Error: Call to undefined function wp() in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php:16 Stack trace: 缺少 wpdb::prepare() 的参数 2,在第 252 行的 /dbtable.php 中调用并在第 1246 行的 /public_html/wp-includes/wp-db.php 中定义 - Missing argument 2 for wpdb::prepare(), called in /dbtable.php on line 252 and defined in /public_html/wp-includes/wp-db.php on line 1246
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM