日志样式

织梦提示Call to a member function GetInnerText()的解决办



织梦DedeCMS在更新列表页html时提示:Fatal error: Call to a member function GetInnerText() on a non-object in \include\taglib\channel\img.lib.php on line 42

 

往往这个错误提示会在更新自定义模型的栏目列表页html时出现,下面CMS资源网告诉大家解决的办法:

 


找到并打开/include/taglib/channel/img.lib.php文件,在里面找到如下代码:

 

$innerTmp = $arcTag->GetInnerText();

 

将其替换为如下代码:

 

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

 

这样就可以解决这个问题了。


上一篇:织梦dedecms会员中心发布图集上传缩略图为空的解 下一篇:织梦DEDECMS出现“PHP has encountered an Access Violation