织梦自定义模型中新增的字段会报错 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());

 就可以了

 

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容