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

 

Fatal error:Call to a member function GetInnerText() on a non-object in E:\wamp\www\include\customfields.func.php  in line 539.

解决办法:

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

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

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

 就可以了

 

posted @ 2017-11-28 15:31  azcqwezxc  阅读(540)  评论(0编辑  收藏  举报