主页 > 网站建设 > 建站知识 > 织梦添加自定义字段为图片出现Fatal error: Call to a member function GetInnerText()错误解决方法

织梦添加自定义字段为图片出现Fatal error: Call to a member function GetInnerText()错误解决方法

POST TIME:2021-05-24 02:55

织梦修改或者添加了自定义字段为图片或者添加自定义表单后在后台修改文章的时候出现如下错误:Fatal error: Call to a member function GetInnerText() on a non-object in \include\customfields.func.php on line 539

如图所示:

 

解决方法很简单,首先打开织梦的根目录下的“include”-“customfields.func.php”文件,在第539行中把以下代码:

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

替换成以下代码即可:

$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());




收缩
  • 微信客服
  • 微信二维码
  • 电话咨询

  • 400-1100-266