我可以替换我的Wordpress function.php吗?

时间:2018-04-05 15:16:33

标签: php wordpress error-handling

我一直收到这个错误,IDK php可以以某种方式替换整个文件吗?

  

致命错误:未捕获错误:在/home/campbel/public_html/wp-includes/functions.php:8580中调用未定义函数get_template_directory()堆栈跟踪:#0 /home/campbel/public_html/wp-settings.php (98):require()#1 /home/campbel/public_html/wp-config.php(91):require_once(' / home / campbel / p ...')#2 / home / campbel / public_html / wp-load.php(37):require_once(' / home / campbel / p ...')#3 /home/campbel/public_html/wp-blog-header.php( 13):require_once(' / home / campbel / p ...')#4 /home/campbel/public_html/index.php(17):require(' / home / campbel / p ...')在第8580行的/home/campbel/public_html/wp-includes/functions.php中抛出#5 {main}

1 个答案:

答案 0 :(得分:0)

最佳方案是更新或重新安装WP。在执行任何操作(包括数据库)之前,请不要忘记创建备份副本。