JAVA、PHP、前端、APP、网站开发 - 开发技术学习

开发技术学习 » 编程开发 » dedecms织梦系统无法更新栏目页解决方法,织梦DedeCms更新列表页时提示Fatal error: Call to a member function GetInnerText() on a non-object in错误修改方法

dedecms织梦系统无法更新栏目页解决方法,织梦DedeCms更新列表页时提示Fatal error: Call to a member function GetInnerText() on a non-object in错误修改方法

dedecms织梦系统无法更新栏目页解决方法

织梦DedeCms更新列表页时提示Fatal error: Call to a member function GetInnerText() on a non-object in错误修改方法 最近在做了一个读图网,用到了自定义模型,遇到了些问题,在更新列表页时提示:Fatal error: Call to a member function GetInnerText() on a non-object in includetaglibchannelimg.lib.php on line 42 这个错误提示会在更新自定义模型栏目列表的时候出现,修复此问题方法很简单。 编辑打开 includetaglibchannelimg.lib.php 查找:
$innerTmp = $arcTag->GetInnerText();
将其替换为:
$innerTmp = ($arcTag==”") ? trim($arcTag) : trim($arcTag->GetInnerText());
if($arcTag==”"){ $innerTmp = trim($arcTag); } else{ $innerTmp = trim($arcTag->GetInnerText()); }
然后就能正常更新列表页了。

站点声明:部分内容源自互联网,为传播信息之用,如有侵权,请联系我们删除。

© Copyright 2011-2024 www.kfju.com. All Rights Reserved.
超级字帖 版权所有。蜀ICP备12031064号