织梦网站程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现以下问题报错: 1 Fatal error: Call to a member function GetInnerText() on st……
织梦网站程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现以下问题报错:
1 |
Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51 |
后台出现:
1 |
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());
修改成
1 |
$fvalue = ($ntag== "" ) ? trim($ntag) : trim($ntag->GetInnerText() |
再继续打开 /include/taglib/channel/img.lib.php 搜索
$innerTmp = $arcTag->GetInnerText();
修改成:
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
修改完成后保存即可:
还没有评论呢,快来抢沙发~