織夢cms中img.lib.php on line 51錯誤導制自定義模,de
導讀:dedecmsdedecms今天在做一個站時用到了自定義模型,遇到了些問題,在更新列表頁時提示:Fatal error: Call to a member function GetInne織夢模板織夢手機模板。
今天在做一個站時用到了自定義模型,遇到了些問題,在更新列表頁時提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:\www\include\taglib\channel\img.lib.php on line 51
這個錯誤會在更新自定義模型欄目列表的時候出現(xiàn),修復此問題方法很簡單。
編輯打開 \include\taglib\channel\im織夢模板下載g.lib.php
查找51行左右:
$innerTmp = $arcTag->GetInnerText();
將其替換為:
$innerTmp = ($arcTag==””) ? trim($arcTag) : trim($arcTag->GetInnerText());
或
idede會員中心模板f($arcTag==””){ $innerTmp = trim($arcTag); } else{ $innerTmp = trim($arcTag->GetInnerText()); }
然后就能正常更新列表頁了,問題上解決 。
相關織夢模板織夢手機模板。聲明: 本文由我的SEOUC技術文章主頁發(fā)布于:2023-07-21 ,文章織夢cms中img.lib.php on line 51錯誤導制自定義模,de主要講述自定義,錯誤,織夢網(wǎng)站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_33437.html