当前位置:首页 > CMS教程 > DeDecms > 列表

dedecms自定义模型:Call to a member function GetInnerText()

发布:smiling 来源: PHP粉丝网  添加日期:2014-03-17 22:40:16 浏览: 评论:0 

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

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());

  1. if($arcTag==”"){ 
  2. $innerTmp = trim($arcTag); 
  3. else
  4. $innerTmp = trim($arcTag->GetInnerText()); 

然后就能正常更新列表页了,问题上解决.

Tags: Call to a member function GetInnerText()

分享到: