手机
当前位置:查字典教程网 >CMS教程 >dedecms >dedecms自定义模型提示:Call to a member function GetInnerText()的解决方法
dedecms自定义模型提示:Call to a member function GetInnerText()的解决方法
摘要:本文实例讲述了dedecms自定义模型提示:CalltoamemberfunctionGetInnerText()的解决方法。分享给大家供大...

本文实例讲述了dedecms自定义模型提示:Call to a member function GetInnerText()的解决方法。分享给大家供大家参考。具体分析如下:

一、问题:

今天在做一个站时用到了自定义模型,遇到了些问题,在更新列表页时提示:

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建站有所帮助。

【dedecms自定义模型提示:Call to a member function GetInnerText()的解决方法】相关文章:

Fatal error: Call to a member function read() on a non-object in 错误解决方法

dedecms中tags页面显示错位的解决方法

DedeCMS系统自定义字段图片调用问题的解决方法

Dedecms自定义模型解决会员无法投稿的方法

dedecms专题节点ID不能出现重复问题的解决方法

dedecms删除系统自定义变量的方法

dedecms内容模型自定义字段在{dede:arclist}中调用不显示的解决方法

dede验证码错误 dede验证码一直提示错误的解决方法

dedecms提示你的用户名不存在的解决方法

dedecms 取消服务器/主机空间目录脚本的执行权限方法[图文]

精品推荐
分类导航