dedeCMS更新列表Fatal error: Call to a member function错误

今天做一个空压机的网站,使用了自定义模型来放置产品,在更新列表的时候,提示:Fatal error: Call to a member function GetInnerText() on a non-object in \include\taglib\channel\img.lib.php on line 42

立即google了一下,万能的谷歌立马给出了解决方案:

打开\include\taglib\channel\img.lib.php

查找

$innerTmp = $arcTag->GetInnerText();

并将其替换为:

$innerTmp = ($arcTag==””) ? trim($arcTag) : trim($arcTag->GetInnerText());

保存并退出,重新回到栏目更新页面,报错提示解除。

Published by 小车

网站技术工人