【问题标题】:PHP warning and PHP Fatal errorPHP 警告和 PHP 致命错误
【发布时间】:2018-08-08 03:57:15
【问题描述】:

我在错误日志中收到此消息 100 次,我的网站现在已关闭,并显示消息“网站当前无法处理此请求。

HTTP ERROR 500

"PHP 警告: 要求(/home/user/public_html/domain.com/wp-includes/post.php): 无法打开流:中没有这样的文件或目录 /home/user/public_html/domain.com/wp-settings.php 第 142 行 PHP 致命错误:require():需要打开失败 '/home/user/public_html/domain.com/wp-includes/post.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') 在 /home/user/public_html/domain.com/wp-settings.php 第 142 行

【问题讨论】:

  • 如果当前执行中不需要此文件,那么您可以将 require 更改为包含。

标签: php wordpress fatal-error http-status-code-500


【解决方案1】:

错误信息很清楚。 WordPress 查找缺少的 /home/user/public_html/domain.com/wp-includes/post.php 文件。 500 错误代码表示存在服务器错误。确保该文件在它预期的 WordPress 位置可用。

【讨论】:

    猜你喜欢
    • 2019-10-31
    • 1970-01-01
    • 1970-01-01
    • 2014-07-25
    • 1970-01-01
    • 2011-03-15
    • 1970-01-01
    • 2013-11-11
    • 1970-01-01
    相关资源
    最近更新 更多