织梦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. […]
织梦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();
改成
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
免责声明:
本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!侵删请致信E-mail:2934755286@qq.com