美文网首页
织梦提示Call to a member function Ge

织梦提示Call to a member function Ge

作者: 阿修哥 | 来源:发表于2017-12-29 16:49 被阅读24次

织梦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());

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

相关文章

网友评论

      本文标题:织梦提示Call to a member function Ge

      本文链接:https://www.haomeiwen.com/subject/rixwgxtx.html