織夢(mèng)系統(tǒng)新增圖片字段后,更新欄目頁(yè)沒反應(yīng)解決辦法
時(shí)間:2015-03-20 | 來源:士人網(wǎng)絡(luò) | 關(guān)注: 483 次
很多用織夢(mèng)系統(tǒng)(dedecms)做網(wǎng)站的朋友經(jīng)常遇到這樣的情況,通過內(nèi)容模型管理新增一個(gè)圖片字段后,發(fā)現(xiàn)無法更新欄目了,即更新欄目時(shí)系統(tǒng)沒有任何反應(yīng)。小編認(rèn)為這是織夢(mèng)系統(tǒng)不兼容的一個(gè)bug,下面給出解決辦法:
第一步:編輯打開 includetaglibchannelimg.lib.php,搜索查找以下代碼:
$innerTmp = $arcTag->GetInnerText();
第二步:將這段代碼改為:
$innerTmp = ($arcTag==””) ? trim($arcTag) : trim($arcTag->GetInnerText());
或者改為:
if($arcTag==””){
$innerTmp = trim($arcTag);
}
else{
$innerTmp = trim($arcTag->GetInnerText());
}
簡(jiǎn)單兩步就可以解決問題,歡迎繼續(xù)關(guān)注士人網(wǎng)絡(luò)網(wǎng)站建設(shè)基本常識(shí)!
相關(guān)熱詞搜索: 織夢(mèng)新增圖片字段欄目無法更