首页 > 解决方案 > wordpress 错误没有这样的文件或目录 wp-settings.php 第 174 行

问题描述

我的网站有问题。在出现此错误之前我所做的是我安装了两个插件并尝试将WordPress升级到5.7。我认为问题在于升级。我确实重命名了插件文件夹,但我仍然面临同样的问题。

警告:需要(/home/vol9_8/unaux.com/unaux_ ******** /htdocs/wp-includes/https-detection.php):无法打开流:/home/中没有这样的文件或目录vol9_8/unaux.com/unaux_ ******** /htdocs/wp-settings.php 第 174 行

致命错误:require():打开失败需要'/home/vol9_8/unaux.com/unaux_ ******** /htdocs/wp-includes/https-detection.php' (include_path='.:/usr /share/pear/') 在/home/vol9_8/unaux.com/unaux_ ********* /htdocs/wp-settings.php 第 174 行

标签: phpwordpressdebuggingerror-handling

解决方案


去档案。wp-settings.php 并删除第 174 和 175 行

//需要 ABSPATH 。WPINC 。'/https-detection.php';

//需要ABSPATH。WPINC 。'/https-migration.php';


推荐阅读