微擎安装后PHP Warning:require(./framework/bootstrap.inc.php):failed to的错误

2015-10-28 21:10:59来源:威易网作者:小易

微擎0.7版成功安装后,访问首页面,发现出现如下错误:PHP Warning:  require(./framework/bootstrap.inc.php): failed to open stream: No such file or directory in D:weiqingindex.php on line 6

微擎0.7版成功安装后,访问首页面,发现出现如下错误:

PHP Warning:  require(./framework/bootstrap.inc.php): failed to open stream: No such file or directory in D:weiqingindex.php on line 6
PHP Fatal error:  require(): Failed opening required ‘./framework/bootstrap.inc.php‘ (include_path=‘.;C:phppear‘) in D:weiqingwx.app.hi.cnindex.php on line 6

错误看起来找不到bootstrap.inc.php文件,实际上文件是正常存在的,打开index.php一看,错误代码行为:

require ‘./framework/bootstrap.inc.php‘;

解决办法很简单,去掉那个“.”,将代码改成:

require ‘/framework/bootstrap.inc.php‘;

就行了。

关键词:微擎微信

赞助商链接:

推荐文章