【问题标题】:Can I replace my Wordpress function.php?我可以替换我的 Wordpress function.php 吗?
【发布时间】:2018-09-15 11:42:33
【问题描述】:

我不断收到此错误,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...') #5 {main} 在 /home/campbel/public_html/wp 中抛出-includes/functions.php 在第 8580 行

【问题讨论】:

  • 是的,我希望你可以,但如果这意味着你已经删除了预期存在的功能,则不能
  • 我会重新安装 WordPress。这是一个核心功能。

标签: php wordpress error-handling


【解决方案1】:

最好的做法是更新或重新安装您的 WP。在做任何事情(包括数据库)之前不要忘记创建一个备份副本。

【讨论】:

    猜你喜欢
    • 2011-07-17
    • 1970-01-01
    • 1970-01-01
    • 2011-10-21
    • 1970-01-01
    • 2012-01-25
    • 1970-01-01
    • 2016-04-13
    • 2017-06-24
    相关资源
    最近更新 更多