DedeCMS提示Call to a member function GetInnerText()的解决办

来源:互联网 发布:cs软件怎么用 编辑:程序博客网 时间:2024/05/16 23:40
DedeCMS提示Call to a member function GetInnerText()的解决办 - ☆奋力拼搏☆ - 北方的…郎减小字体 DedeCMS提示Call to a member function GetInnerText()的解决办 - ☆奋力拼搏☆ - 北方的…郎增大字体作者:admin  来源:www.58nin.com  发布时间:2011-11-24 9:41:23

更新列表页时提示:Fatal error: Call to a member function GetInnerText() on a non-object in \include\taglib\channel\img.lib.php on line 42

这个错误提示会在更新自定义模型栏目列表的时候出现,修复此问题方法很简单

编辑打开 \include\taglib\channel\img.lib.php

查找:

  $innerTmp = $arcTag->GetInnerText();

将其替换为:

  $innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());

或者:

  if($arcTag==""){
    $innerTmp = trim($arcTag);
}
else{
    $innerTmp = trim($arcTag->GetInnerText());
}

OK,搞定。

其实两种效果是一模一样的。

0 0
原创粉丝点击