• 河南网站建设-郑州网站设计-郑州网站建设-手机建站-郑州建站-上海建站

  • 专注网站建设 服务热线: 13061801310

当前位置:好东东网 > 近期动态 > 网站建设观点 > 正文

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

发布时间:2021-04-30 | 发布者: 东东工作室 | 浏览次数:
织梦程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现
 
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());
 

转载请标注:东东工作室——织梦自定义图片字段报错Call to a member function GetInnerText()