0 Comments

织梦错误:Call to a member function GetInnerText() on a non-object解决方法

发布于:2018-08-22  |   作者:admin  |   已聚集:人围观

织梦在后台自定义模型添加了图片上传的时候



出现了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());

保存即可
标签:
专业承接织梦仿站,织梦模块开发,织梦插件开发,织梦模板定制,网站优化,可联系QQ:
点击这里给我发消息
飞机