發(fā)表日期:2018-09 文章編輯:小燈 瀏覽次數(shù):3326
DEDE織夢(mèng)自定義模型圖片內(nèi)容提示Fatal error:Call to a member function GetInnerText() on a non-object 解決方法
DEDE的自定義模型,如果用來(lái)發(fā)布圖片,可能會(huì)出現(xiàn)以下問題
在更新列表頁(yè)或者點(diǎn)編輯文章時(shí)會(huì)提示:
Fatalerror:CalltoamemberfunctionGetInnerText()onanon-objectinE:wwwinclude aglibchannelimg.lib.phponline51
或者提示includecustomfields.func.phponline539
這個(gè)錯(cuò)誤修復(fù)方法很簡(jiǎn)單。
編輯打開include aglibchannelimg.lib.php
查找51行左右:
$innerTmp = $arcTag->GetInnerText();
將其替換為:
$innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
或
if($arcTag==""){
$innerTmp = trim($arcTag);
}
else{
$innerTmp = trim($arcTag->GetInnerText());
}
編輯includecustomfields.func.php
將539行的
$fvalue = trim($ntag->GetInnerText());
替換成
if($ntag==""){
$fvalue = trim($ntag);
}
else{
$fvalue = trim($ntag->GetInnerText());
}
然后就能正常更新列表頁(yè)了,問題上解決 。
日期:2018-09 瀏覽次數(shù):3520
日期:2018-09 瀏覽次數(shù):4726
日期:2018-09 瀏覽次數(shù):3290
日期:2018-09 瀏覽次數(shù):3167
日期:2018-09 瀏覽次數(shù):3271
日期:2018-09 瀏覽次數(shù):3089
日期:2018-09 瀏覽次數(shù):3527
日期:2018-09 瀏覽次數(shù):3681
日期:2018-09 瀏覽次數(shù):3373
日期:2018-09 瀏覽次數(shù):3542
日期:2018-09 瀏覽次數(shù):3283
日期:2018-09 瀏覽次數(shù):3319
日期:2018-09 瀏覽次數(shù):3167
日期:2018-09 瀏覽次數(shù):3066
日期:2018-09 瀏覽次數(shù):3277
日期:2018-09 瀏覽次數(shù):3182
日期:2018-09 瀏覽次數(shù):4170
日期:2018-09 瀏覽次數(shù):3137
日期:2018-09 瀏覽次數(shù):3358
日期:2018-09 瀏覽次數(shù):3325
日期:2018-08 瀏覽次數(shù):3327
日期:2018-08 瀏覽次數(shù):3359
日期:2018-08 瀏覽次數(shù):3086
日期:2018-08 瀏覽次數(shù):3960
日期:2018-08 瀏覽次數(shù):3599
日期:2018-08 瀏覽次數(shù):3265
日期:2018-08 瀏覽次數(shù):4953
日期:2018-08 瀏覽次數(shù):3414
日期:2018-08 瀏覽次數(shù):3399
日期:2018-08 瀏覽次數(shù):3980
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.