織夢修改或者添加了自定義字段為圖片或者添加自定義表單后在后臺修改文章的時候出現如下錯誤:Fatal error: Call to a member function GetInnerText() on a non-object in \include\customfields.func.php on line 539
如圖所示:
(此圖片來源于網絡,如有侵權,請聯系刪除! )
解決方法很簡單,首先打開織夢的根目錄下的“include”-“customfields.func.php”文件,在第539行中把以下代碼:
$fvalue = trim($ntag->GetInnerText());
替換成以下代碼即可:
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());