dedecms自定义模型提示:Call to a member function GetInnerTex
织梦dedecms自定义模型提示:Call to a member function GetInnerText()怎么解决?织梦58给大家具体分析如下:
一、问题:
今天在做一个站时用到了自定义模型,遇到了些问题,在更新列表页时提示:
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());
}
然后就能正常更新列表页了,问题上解决。
版权申明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
蓝大富博客 » dedecms自定义模型提示:Call to a member function GetInnerTex
蓝大富博客 » dedecms自定义模型提示:Call to a member function GetInnerTex