织梦cms

推荐列表 站点导航

当前位置:首页 > 建站教程 > 织梦cms >

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

来源:网络整理  作者:  发布时间:2020-12-21 02:43
织梦程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现 Fatal error: Call to a member function GetInnerText()...

继续打开 /include/taglib/channel/img.lib.php 搜索

改成

$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());  

$innerTmp = $arcTag->GetInnerText();  

后台出现

Fatal error: Call to a member function GetInnerText() on a non-object in /include/customfields.func.php on line 539  
Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51  
解决方法

打开 /include/customfields.func.php 搜索

改成

$fvalue = trim($ntag->GetInnerText());  

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

$fvalue = ($ntag=="") ? trim($ntag) : trim($ntag->GetInnerText());  

相关热词: 织梦

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/dedecms/6453.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

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

2020-12-21 编辑:

继续打开 /include/taglib/channel/img.lib.php 搜索

改成

$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());  

$innerTmp = $arcTag->GetInnerText();  

后台出现

Fatal error: Call to a member function GetInnerText() on a non-object in /include/customfields.func.php on line 539  
Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51  
解决方法

打开 /include/customfields.func.php 搜索

改成

$fvalue = trim($ntag->GetInnerText());  

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

$fvalue = ($ntag=="") ? trim($ntag) : trim($ntag->GetInnerText());  

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/dedecms/6453.shtml

相关文章

风云图片

推荐阅读

返回织梦cms频道首页