找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 736|回复: 0

[cms教程] 织梦dede自定义图片字段报错Call to a member function GetInnerText()

[复制链接]

该用户从未签到

发表于 2021-6-8 09:34:31 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
织梦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());
回复

使用道具 举报

网站地图|页面地图|Archiver|手机版|小黑屋|找资源 |网站地图

本站资源均为通过网络等公开合法渠道获取的资料,该资料只作为阅读交流之用,
其版权归作者或者原出版社所有,本站不对所涉及的版权负法律责任!如出版方、出版社认为本站行为侵权请立即通知本站删除,
物品所表示价格是对本站收集、整加工该资料及本站运营所必须的费用等支付的适度补偿。应尊重原版权方、出版社的知识产权和作者,谢谢

GMT+8, 2026-6-9 05:26

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表