DEDE織夢(mèng)自定義模型圖片內(nèi)容提示Fatal error:Call to a member function GetInnerText() on a non-object 解決方法
DEDE的自定義模型,如果用來(lái)發(fā)布圖片,可能會(huì)出現(xiàn)以下問(wèn)題
在更新列表頁(yè)或者點(diǎn)編輯文章時(shí)會(huì)提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:wwwinclude aglibchannelimg.lib.php on line 51
或者提示
includecustomfields.func.php on line 539
這個(gè)錯(cuò)誤修復(fù)方法很簡(jiǎn)單。
編輯打開 include aglibchannelimg.lib.php
查找51行左右:
$innerTmp = $arcTag->GetInnerText();
將其替換為:
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
或
if($arcTag==""){ $innerTmp = trim($arcTag);}else{ $innerTmp = trim($arcTag->GetInnerText());}編輯includecustomfields.func.php
將539行的
$fvalue = trim($ntag->GetInnerText());
替換成
if($ntag==""){ $fvalue = trim($ntag);}else{ $fvalue = trim($ntag->GetInnerText());}然后就能正常更新列表頁(yè)了,問(wèn)題上解決 。
新聞熱點(diǎn)
疑難解答
圖片精選