报错内容:
Fatal error: Uncaught Error: Call to a member function GetInnerText() on string in /www/include/customfields.func.php:547 Stack trace: #0 /www/inc/inc_archives_functions.php(560): GetFormItemValue(Object(DedeTag), '', 'admin') #1 /www/inc/inc_archives_functions.php(615): GetFormItemValueA(Object(DedeTag), '') #2 /www/templets/archives_sg_edit.htm(184): PrintAutoFieldsEdit('<field:channel ...', Array, 'autofield') #3 /www//archives_sg_edit.php(40): include('/www/...') #4 {main} thrown in /www/include/customfields.func.php on line 547
解决办法:
打开\include\customfields.func.php文件
else
{
$ntag = $ndtp->GetTag("img");
$fvalue = trim($ntag->GetInnerText());
}
修改后代码
else
{
$ntag = $ndtp->GetTag("img");
$fvalue = ($ntag=="") ? trim($ntag) :trim($ntag->GetInnerText());
//$fvalue = trim($ntag->GetInnerText());
}
恢复了