欢迎来到素材无忧网,按 + 收藏我们
登录 注册 退出 找回密码

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

时间: 2020-09-15 15:34 阅读: 作者:素材无忧网

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

Fatal error: Call to a member function GetInnerText() on string in include aglibchannelimg.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());

版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!

转载请注明: 织梦自定义图片字段报错Call to a member function GetInnerText()

相关文章
模板推荐