织梦dede自定义图片字段报错Call to a member fun

网站建设 2022-07-27 08:12www.1681989.com免费网站
织梦dede程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现 Fatal error: Call to a member function GetInnerText() on strg /clude/taglib/channel/img.lib.php on le 51 dede后台出现 Fatal error: Call to a member function GetInnerText() on a non-object /clude/customfields. […]



织梦dede程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现

Fatal error: Call to a member function GetInnerText() on strg /clude/taglib/channel/img.lib.php on le 51

dede后台出现

Fatal error: Call to a member function GetInnerText() on a non-object /clude/customfields.func.php on le 539

解决方法

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

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

改成

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

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

$nerTmp = $arcTag->GetInnerText();

改成

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


Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by