DEDE织梦自定义模型图片内容提示Fatal error:Call to a member function GetInnerText() on a

发布人:织梦97 时间:2018-09-03 人气:2346

好消息:所有模板免费下载!同时承接各类网站编辑制作、仿站业务,详情联系客服QQ:282140068织梦仿站、织梦安装、修改、安全处理、疑难解决、PHP网站开发、网页设计、改版、点击这里
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: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());
}
然后就能正常更新列表页了,问题上解决 。
暂无评论!
用户: 密码: 验证: 点击获取 注册
验证: 点击获取