dedecms织梦自定义标签,造成更新列表页出现img.lib.php on line 51解决方法

WBOY
Release: 2016-06-13 12:08:17
Original
1365 people have browsed it

dedecms织梦自定义标签,造成更新列表页出现img.lib.php on line 51解决办法

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

Fatal error: Call to a member function GetInnerText() on a non-object in E:\www\include\taglib\channel\img.lib.php on line 51

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

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

查找51行左右:

$innerTmp = $arcTag->GetInnerText();

将其替换为:

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

if($arcTag==""){

? ? $innerTmp = trim($arcTag);

}

else{

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

}

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template