织梦自定义字段报错Call to a member function GetInnerText()

COS、CDN
  • 问题:自定义字段报错 Call to a member function GetInnerText() on string
  • 解决办法
    • 打开 /include/customfields.func.php 文件,将 $fvalue = trim($ntag->GetInnerText()); 改为:
      $fvalue = ($ntag == "") ? trim($ntag) : trim($ntag->GetInnerText());
    • 打开 /include/taglib/channel/img.lib.php 文件,将 $innerTmp = $arcTag->GetInnerText(); 改为:
      $innerTmp = ($arcTag == "") ? trim($arcTag) : trim($arcTag->GetInnerText());

       

COS、CDN
热门