织梦dedecms自定义模型提示:Call to a member function GetInnerText()怎么解决?织梦97给大家具体分析如下:
一、问题:
今天在做一个站时用到了自定义模型,遇到了些问题,在更新列表页时提示:
Fatal error: Call to a member function GetInnerText() on a non-object in E:wwwincludetaglibchannelimg.lib.php on line 51
二、解决方法:
这个错误会在更新自定义模型栏目列表的时候出现,修复此问题方法很简单,编辑打开 includetaglibchannelimg.lib.php,查找51行左右:
$innerTmp = $arcTag->GetInnerText();
将其替换为:
$innerTmp = ($arcTag==””) ? trim($arcTag) : trim($arcTag->GetInnerText());
或
if($arcTag==””){
$innerTmp = trim($arcTag);
}
else{
$innerTmp = trim($arcTag->GetInnerText());
}
然后就能正常更新列表页了,问题上解决。
织梦dedecms自定义模型提示:Call to a member function GetInne
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《织梦dedecms自定义模型提示:Call to a member function GetInne》
文章链接:https://www.ibytx.com/721.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
文章名称:《织梦dedecms自定义模型提示:Call to a member function GetInne》
文章链接:https://www.ibytx.com/721.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
相关推荐
php:Illegal offset type in XXX错误原因及解决方法
DedeCMS后台模块管理空白不显示列表的解决办法
webuploader如何判断文件是否上传成功?
public function list()报错syntax error, unexpected T_LIST, expecting T_STRING
织梦CMS怎么在首页模板和列表页模板调用图集里的所有图片
Mac系统提示“pip install ” is failing with AttributeError: 'module' object has no attribute 'SSL_ST_INIT'错误的解决办法
JQuery获取select选中事件
DfrgFat.exe应用程序错误的解决方法

博悦天下


