进入后台发现报“require_once() Failed opening required wp-load.php in wp-admin/admin.php”报错,
打开wp-admin目录下手admin.php文件,将
代码如下 | 复制代码 |
require_once(dirname(dirname(__FILE__)) . '/wp-load.php'); |
改成
代码如下 | 复制代码 |
require_once('../wp-load.php'); |
重新上传即可解决问题(wp会提示更新数据库)
改后的路径其它跟没改的一样,后发现重新改回默认的,页面就不竟然不报错了!怀疑更新wp程序后应先进入
/wp-admin/upgrade.php更新下再进入后台可避免wp程序报错!
安装wordpress出现了如下的错误:
Warning: require_once(D:wwwroot/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in D:wwwrootsinogou֮��wp-blog-header.php on line 12
Fatal error: require_once() [function.require]: Failed opening required 'D:wwwroot/wp-load.php' (include_path='.;C:php5pear') in D:wwwrootsinogou֮��wp-blog-header.php on line 12
出现如上错误,是因为路径中有中文所致
把路径改为英文的就可了
时间: 2024-11-01 08:33:25