目录
DEDE织梦自定义模型图片内容提示Fatal error:Call to a member function GetInnerText() on a non-object 解决方法DEDE的自定义模型
如果用来发布图片,可能会出现以下问题在更新列表页或者点编辑文章时会提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:www/include aglib/channel/img.lib.php on line 51
或者提示include/custom/fields.func.php on line 539
这个错误修复方法很简单。
编辑打开 include/aglib/channel/img.lib.php
查找51行左右:
$innerTmp = $arcTag->GetInnerText();
将其替换为:
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
或
if($arcTag==""){
$innerTmp = trim($arcTag);
}
else{
$innerTmp = trim($arcTag->GetInnerText());
}
编辑include/custom/fields.func.php
将539行的
$fvalue = trim($ntag->GetInnerText());
替换成
if($ntag==""){
$fvalue = trim($ntag);
}
else{
$fvalue = trim($ntag->GetInnerText());
}
然后就能正常更新列表页了,问题上解决 。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。