POST TIME:2021-05-24 03:05
織夢dedecms自定義模型提示:Call to a member function GetInnerText()怎么解決?織夢58給大家具體分析如下:
一、問題:
今天在做一個站時用到了自定義模型,遇到了些問題,在更新列表頁時提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:wwwincludetaglibchannelimg.lib.php on line 51
二、解決方法:
這個錯誤會在更新自定義模型欄目列表的時候出現,修復此問題方法很簡單,編輯打開 includetaglibchannelimg.lib.php,查找51行左右:
將其替換為:$innerTmp = $arcTag->GetInnerText();
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
或
然后就能正常更新列表頁了,問題上解決。if($arcTag==""){
$innerTmp = trim($arcTag);
}
else{
$innerTmp = trim($arcTag->GetInnerText());
}