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

wdzsjl 4周前 (10-28) 阅读数 14 #宝塔面板
  • 问题:自定义字段报错 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());

       

wx.jpg ywfw.jpg
热门