织梦提示:Call to a member function GetInnerText()的解决方法
时间:2015-06-18 阅读:次 QQ群:182913345
一、问题
今天在做一个站时用到了自定义模型,遇到了些问题,在更新列表页时提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:wwwincludetaglibchannelimg.lib.php on line 51
二、解决方法
这个错误会在更新自定义模型栏目列表的时候出现,修复此问题方法很简单,编辑打开 includetaglibchannelimg.lib.php,查找51行左右:
$innerTmp = $arcTag->GetInnerText(); |
将其替换为:
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText()); |
或替换为:
if($arcTag==""){ $innerTmp = trim($arcTag); }else{ $innerTmp = trim($arcTag->GetInnerText()); } |