在織夢自定義模型后,可能會報下面這個錯誤,F(xiàn)atal error: Call to a member function GetInnerText() on a non-object in D:\WWW2\ebh\include\customfields.func.php on line 539
解決辦法如下:
打開\include\customfields.func.php文件,找到539行:
把$fvalue = trim($ntag->GetInnerText());
替換成:$fvalue = ($ntag=="") ? trim($ntag) :trim($ntag->GetInnerText());
就可以了
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢自定義模型中新增的字段會報錯 Call to a member function G