织梦自定义模型中新增的字段会报错 Call to a member function GetInnerText() on a n

织梦自定义模型中新增的字段会报错 Call to a member function GetInnerText() on a n,第1张

织梦自定义模型中新增的字段会报错 Call to a member function GetInnerText() on a n

在织梦自定义模型后,可能会报下面这个错误,Fatal error: Call to a member function GetInnerText() on a non-object in D:WWW2ebhincludecustomfields.func.php on line 539

 

解决办法如下:

打开includecustomfields.func.php文件,找到539行:

把$fvalue = trim($ntag->GetInnerText());

替换成:$fvalue = ($ntag=="") ? trim($ntag) :trim($ntag->GetInnerText());

 就可以了

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/3010814.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-09-28
下一篇 2022-09-28

发表评论

登录后才能评论

评论列表(0条)

保存