织梦dede自定义图片字段报错Call to a member function GetInnerText()
织梦dede程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现
Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51
dede后台出现
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();
改成
☉免责声明:本站所有模板均来自用户分享和网络收集,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服,我们核实后会立即删除。
☉本站提供的源码、模板、软件工具等其他资源,都不包含技术服务,请大家谅解!
pbootcms模板网 » 织梦dede自定义图片字段报错Call to a member function GetInnerText()
☉本站提供的源码、模板、软件工具等其他资源,都不包含技术服务,请大家谅解!
pbootcms模板网 » 织梦dede自定义图片字段报错Call to a member function GetInnerText()