VIP福利
主页 > 建站问题 > 故障问题 > 织梦dedecms自定义模型提示:Call to a member function GetInne

织梦dedecms自定义模型提示:Call to a member function GetInne

dede模板自定义模型提示: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 二、解决方法: 这个错误会在更新自定义模 […]



dede模板自定义模型提示: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行左右:
  1. $innerTmp = $arcTag->GetInnerText();
将其替换为:
  1. $innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
  1. if($arcTag==""){
  2. $innerTmp = trim($arcTag);
  3. }
  4. else{
  5. $innerTmp = trim($arcTag->GetInnerText());
  6. }
然后就能正常更新列表页了,问题上解决。
 

说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!