织梦在后台自定义模型添加了图片上传的时候
出现了Fatal error: Call to a member function GetInnerText() on a non-object in /htdocs/include/customfields.func.php on line 539错误
网上有很多解决方案都不对,现织梦二次开发网给出如下解决方案
将include/customfields.func.php 文件的539行
$fvalue = trim($ntag->GetInnerText()); |
替换为
$fvalue = ($ntag=="") ? trim($ntag) : trim($ntag->GetInnerText()); |
保存即可