POST TIME:2021-05-24 02:55
DEDE織夢自定義模型圖片內容提示Fatal error:Call to a member function GetInnerText() on a non-object 解決方法
DEDE的自定義模型,如果用來發布圖片,可能會出現以下問題
在更新列表頁或者點編輯文章時會提示:
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
這個錯誤修復方法很簡單。
編輯打開 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());
}
然后就能正常更新列表頁了,問題上解決 。