最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
dedecms自定义模型:Call to a member function GetInnerText()
时间:2013-12-25 编辑:简简单单 来源:一聚教程网
今天在做一个站时用到了自定义模型,遇到了些问题,在更新列表页时提示:
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());
}
然后就能正常更新列表页了,问题上解决 。
相关文章
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31
- 使用HTML截图并保存为本地图片的代码展示 10-31