主頁 > 網站建設 > 建站知識 > dedecms自定義模型提示:Call to a member function GetInnerTex

dedecms自定義模型提示:Call to a member function GetInnerTex

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());
}
然后就能正常更新列表頁了,問題上解決。


收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266