織夢程序當(dāng)你添加了自定義圖片字段時,前臺打開當(dāng)前欄目列表就會出現(xiàn)
Fatal error: Call to a member function GetInnerText() on string in /include/taglib/channel/img.lib.php on line 51
后臺出現(xiàn)
Fatal error: Call to a member function GetInnerText() on a non-object in /include/customfields.func.php on line 539
  • 解決方法
打開 /include/customfields.func.php 搜索
$fvalue = trim($ntag->GetInnerText());
改成
$fvalue = ($ntag=="") ? trim($ntag) : trim($ntag->GetInnerText());
繼續(xù)打開 /include/taglib/channel/img.lib.php 搜索
$innerTmp = $arcTag->GetInnerText();
改成
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());