您现在的位置是:主页 > 建站知识 > 建站知识

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

方元2019-10-28建站知识人已围观

简介织梦程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现 Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51 后台出现 Fatal error: Cal

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


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());

很赞哦! ()

文章评论

说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!

站长周边福利领取

标签云

最新评论