织梦自定义图片字段报错Call to a member function GetInnerText()

织梦自定义图片字段报错Call to a member function GetInnerText(),第1张

织梦自定义图片字段报错Call to a member function GetInnerText() 织梦程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现
Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51

后台出现

Fatal error: Call to a member function GetInnerText() on a non-object in /include/customfields.func.php on line 539
解决方法

打开 /include/customfields.func.php 搜索

$fvalue = trim($ntag->GetInnerText());

改成

$fvalue = ($ntag=="") ? trim($ntag) : trim($ntag->GetInnerText());

继续打开 /include/taglib/channel/img.lib.php 搜索

$innerTmp = $arcTag->GetInnerText();

改成

$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/3006622.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-09-27
下一篇 2022-09-27

发表评论

登录后才能评论

评论列表(0条)

保存