织梦自定义图片字段报错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());

 


1、本网站名称:源码村资源网
2、本站永久网址:https://www.yuanmacun.com
3、本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行删除处理。
4、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
5、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
6、本站资源大多存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。
源码村资源网 » 织梦自定义图片字段报错Call to a member function GetInnerText()
您需要 登录账户 后才能发表评论