【Fatal error: Call to a member function read() on a non-object in】
2012-09-26 09:49
369 查看
Fatal error: Call to a member function read() on a non-object in
文件/dede/testenv.php第170行
找到类似下面代码:
$dh = dir($d);
修改成:
if (!is_dir($d)){
return $dirname;
}
$dh = dir($d);
这是因为这个文件没有检查你的文件夹是否存在,它只按DEDE默认的文件夹去检索!
文件/dede/testenv.php第170行
找到类似下面代码:
$dh = dir($d);
修改成:
if (!is_dir($d)){
return $dirname;
}
$dh = dir($d);
这是因为这个文件没有检查你的文件夹是否存在,它只按DEDE默认的文件夹去检索!
相关文章推荐
- DEDE发生Fatal error: Call to a member function read() on a non-object in 错误解决方法
- Fatal error: Call to a member function read() on a non-object in 错误解决方法
- Fatal error: Call to a member function read() on a non-object in 错误解决方法
- Fatal error: Call to a member function createTemplate() on a non-object in
- Fatal error: Call to a member function read() on a non-object in
- mysqli::stmt报Fatal error: Call to a member function bind_param() on a non-object in ...
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Web_PHP_织梦更新列表页提示Fatal error: Call to a member function GetInnerText() on a non-object in ...
- Fatal error: Call to a member function getData() on a non-object in /data/php/framework/exts/zii/wid
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- 常见的magent问题系列二--Fatal error: Call to a member function toHtml() on a non-object in ../../Layout.php
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap