BUG

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

温馨提示:DedeCMS用户请及时前往织梦官网处理官方版权事宜。

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

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://www.zhimatong.com/jiaocheng/429.html

为保证教程的实用性及扩大知识面覆盖,如果您有相似问题而未解决,可联系在线客服免费技术支持。

内容有用

联系
顾问

在线
客服
购物车
账号登录

没有账号?立即注册

忘记密码

登录即同意用户协议没有账号? 立即注册
账号注册
我已阅读并同意用户协议
立即注册
注册即同意用户协议已有账号? 立即登录
找回密码

操作步骤:邮箱验证->设置新密码

注册即同意用户协议已有账号? 立即登录