织梦自定义图片字段报错 Call to a member function GetInnerText() 解决方法

  1. 修改 customfields.func.php 文件

    • 找到:
       
       
      $fvalue = trim($ntag->GetInnerText());
    • 修改为:
       
       
      $fvalue = ($ntag == "") ? trim($ntag) : trim($ntag->GetInnerText());
  2. 修改 img.lib.php 文件

    • 找到:
       
       
      $innerTmp = $arcTag->GetInnerText();
    • 修改为:
       
       
      $innerTmp = ($arcTag == "") ? trim($arcTag) : trim($arcTag->GetInnerText());

 

posted @ 2024-11-03 19:50  黄文Rex  阅读(8)  评论(0)    收藏  举报