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

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

 

 


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

打开\include\customfields.func.php文件,找到539行:

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

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

posted @ 2021-04-21 16:39  冷晨  阅读(246)  评论(0编辑  收藏  举报