dede 自定义模型中,有时候新增的字段会报错:

Fatal error:Call to a member function GetInnerText() on a non-object in E:wampwwwincludecustomfields.func.php  in line 539.

解决办法:

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

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

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

 就可以了

 

原文地址:https://www.cnblogs.com/haohaosky/p/7910231.html