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

织梦DedeCMS在更新列表页html时提示:Fatal error: Call to a member function GetInnerText() on a non-object in includetaglibchannelimg.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 GetInnerText()的解决办法

相关文章:

你感兴趣的文章:

标签云: