dedecms错误:Call to a member function GetInnerText() on a non-object解决方法

2013-12-27 liyangweb.com 李杨 PHP

在dedems生成列表时,如果有图片的自定义字段就可能出现Call to a member function GetInnerText() on a non-object的错误,如何解决呢?很简单:

打开\include\taglib\channel\img.lib.php搜索$innerTmp = $arcTag->GetInnerText();我的是5.7sp1,在文件的第51行,更改为$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());刷新页面,错误木有了。

标签: PHP dedecms

发表评论:

Powered by emlog 冀ICP备13011830号-1