DEDECMS新增字段后,发布的文章无法修改编辑不显示报错:Fatal error: Call to a member function GetInnerText() on string in

DEDECMS新增字段后,发布的文章无法修改报错Fatal error: Call to a member function GetInnerText() on string in XXXXXincludecustomfields.func.php on line 539。dedecms发布的文章无法编辑、无法修改。不显示。问题解决办法。


DEDECMS报错 Fatal error: Call to a member function GetInnerText()
解决办法:

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

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

$fvalue = ($ntag=="") ? trim($ntag) :trim($ntag->GetInnerText());
问题解决!

原文地址:https://www.cnblogs.com/lcxin/p/14685830.html