DEDE织梦自定义模型图片内容提示Fatal error:Call to a member function GetInnerText() on a non-object 解决方法
在更新列表页或者点编辑文章时会提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:wwwinclude aglibchannelimg.lib.php on line 51
或者提示includecustomfields.func.php on line 539
这个错误修复方法很简单。
编辑打开 include aglibchannelimg.lib.php
查找51行左右:
$innerTmp = $arcTag->GetInnerText();
将其替换为:
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
或
if($arcTag==""){
$innerTmp = trim($arcTag);
}
else{
$innerTmp = trim($arcTag->GetInnerText());
}
编辑includecustomfields.func.php
将539行的
$fvalue = trim($ntag->GetInnerText());
替换成
if($ntag==""){
$fvalue = trim($ntag);
}
else{
$fvalue = trim($ntag->GetInnerText());
}
然后就能正常更新列表页了,问题上解决 。