网站模板中心

您现在的位置:首页>>织梦大学>>织梦技巧

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

来源: 编辑:admin 发布时间:2021-09-08热度:84 ℃
织梦dede程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现 Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51 dede后台出现 Fatal err...

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

Pbootcms问题解决

请点击在线联系我们【点击咨询解决问题】   如果您有任何Pbootcms问题,我们将免费为您写解决教程!

    PB模板网:承接仿站业务,价格200元起!