DEDE织梦自定义模型图片内容提示Fatal error:Call to a member f(dede模板)

admin 145 2022-07-27

阿里云服务器优惠多,折扣错,惊喜多,请咨询:www.wqiis.com

DEDE织梦自定义模型图片内容提示Fatal error:Call to a member function GetInnerText() on a non-object 解决方法

DEDE的自定义模型,如果用来发布图片,可能会出现以下问题

DEDE织梦自定义模型图片内容提示Fatal error:Call to a member f(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());

}

然后就能正常更新列表页了,问题上解决 。

上一篇:怎么样买云服务器比较划算?(买什么云服务器好)
下一篇:便宜的云服务器去哪买?(价格便宜的云服务器)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~