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

  • 问题:自定义字段报错 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());

       

posted @ 2024-10-31 09:12  黄文Rex  阅读(12)  评论(0)    收藏  举报