Fatal error: Call to a member function read() on a non-object in D:\wamp\www\include\dialog\select_images.php on line 149 解决方法

dedecms的 图片/上传文件默认路径:默认为/uploads, 想修改成其他的目录,比如/www.helloworld.com。在添加文档站内选择图片的时候发现报错:

Fatal error: Call to a member function read() on a non-object in D:\wamp\www\include\dialog\select_images.php on line 149 解决方法

找到名为select_images.php的文件,第22行(dede5.7版本),

$activepath = str_replace('.', '', $activepath);

 

将此行禁用,保存文件

//$activepath = str_replace('.', '', $activepath);

 

问题解决!

你可能感兴趣的:(function)