新聞中心
解決Dedecms(織夢(mèng))自定義模型無(wú)法更新列表的問(wèn)題
無(wú)憂主機(jī)m.love62.cn今天接待了一位客戶,他遇到一個(gè)麻煩,在后臺(tái)更新列表頁(yè)的時(shí)候報(bào)錯(cuò),無(wú)法更新成功。錯(cuò)誤提示如下:
?Fatal error: Call to a member function GetInnerText() on a non-object in \domains\test.815.51php.com\public_html\include\taglib\channel\img.lib.php on line 42
關(guān)于這個(gè)問(wèn)題,我也沒(méi)遇到過(guò),只能求助于dedecms官方論壇,發(fā)帖尋找熱心人。功夫不負(fù)用心人,終于管理員給我的回復(fù)如下:
1、 下載并使用editplus文本編輯器打開 \include\taglib\channel\img.lib.php
然后使用查找定位——$innerTmp = $arcTag->GetInnerText();
找到位置后,然后將“$innerTmp = $arcTag->GetInnerText();”替換為:“$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());”
如下圖:
無(wú)憂主機(jī) 提供美國(guó)/香港 純Linux環(huán)境下高端免備案php空間,僅僅只需99元一
本文地址:http://m.love62.cn/dedecms/1830.html
![1](/wp-content/themes/starow_z/img/o-1.png)
![1](/wp-content/themes/starow_z/img/o-2.png)
![1](/wp-content/themes/starow_z/img/o-3.png)
![1](/wp-content/themes/starow_z/img/o-4.png)
![1](/wp-content/themes/starow_z/img/o-5.png)
![1](/wp-content/themes/starow_z/img/o-6.png)
![1](/wp-content/themes/starow_z/img/o-7.png)