当前位置:首页 > CMS教程 > WordPress > 列表

WordPress require_once() Failed opening required

发布:smiling 来源: PHP粉丝网  添加日期:2014-03-18 21:50:21 浏览: 评论:0 

今天进我的wordpress发现提示require_once() Failed opening required in wp-admin/admin.php错误了,出现这类问题一看就是文件路径不对了,解决办法很简单.

进入后台发现报“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

出现如上错误,是因为路径中有中文所致,把路径改为英文的就可以了.

Tags: require_once Failed opening

分享到: