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

COS、CDN
  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());

 

COS、CDN
热门