織夢提示:Fatal error: Call to a member f,dedecms
導讀:dedecmsdedecms跟版網在做網站時經常能用到自定義模型,但是今天再在后臺完成新建自定義模型之后,更新欄目出現如下錯誤提示: Fatal error: Call to a membdede手機模板織夢手機模板。
跟版網在做網站時織夢后臺模板經常能dede下瓻模板下載用到自定義模型,但是今天再在后臺完成新建自定義模型之后,更新欄目出現如下錯誤提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:\www\include\taglib\channel\img.lib.php on line 51
那么該怎么修復這個問題呢。
其實只需要替換一段代碼就可以了。
dede會員中心模板 編輯打開 /inculde/taglib/channel/img.lib.php
//遍歷圖片信息
$mrow = 0;
$mcol = 0;
$images = array();
$innerTmp = $arcTag->GetInnerText();
if(trim($innerTmp)=='')
{
$innerTmp = GetSysTemplets("channel_article_image.htm");
}
找到51行所在的代碼,
即:$innerTmp = $arcTag->GetInnerText();將其替換為
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
保存即可。
然后更新一下列表頁就會發現,可以正常的更新了。
相關dede手機模板織夢手機模板。聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-19 ,文章織夢提示:Fatal error: Call to a member f,dedecms主要講述提示,標簽,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_30258.html