织梦自定义模型中新增的字段会报错 Call to a member function GetInnerText() on a n

织梦自定义模型后,可能会报下面这个错误,Fatal error: Call to a member function GetInnerText() on a non-object in D:\WWW2\ebh\include\customfields.func.php on line 539

解决办法如下:

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

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

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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/50b31bea7fb70749fc4a01fa4a34fdea.html