首页 > CMS > 织梦DEDE > 正文

织梦Fatal error:Call to a member function GetInnerText() on a non-object 解决方法

2024-07-12 08:48:33
字体:
来源:转载
供稿:网友
这篇文章主要为大家详细介绍了织梦Fatal error:Call to a member function GetInnerText() on a non-object 解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。

DEDE织梦自定义模型图片内容提示Fatal error:Call to a member function GetInnerText() on a non-object 解决方法

DEDE的自定义模型,如果用来发布图片,可能会出现以下问题

在更新列表页或者点编辑文章时会提示:

Fatal error: Call to a member function GetInnerText() on a non-object in E:wwwinclude aglibchannelimg.lib.php on line 51

或者提示

includecustomfields.func.php on line 539

这个错误修复方法很简单。

编辑打开 include aglibchannelimg.lib.php

查找51行左右:

$innerTmp = $arcTag->GetInnerText();

将其替换为:

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

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

编辑includecustomfields.func.php

将539行的

$fvalue = trim($ntag->GetInnerText());

替换成

if($ntag==""){    $fvalue = trim($ntag);}else{    $fvalue = trim($ntag->GetInnerText());}

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


以上就是织梦Fatal error:Call to a member function GetInnerText() on a non-object 解决方法的全部内容,希望对大家的学习和解决疑问有所帮助,也希望大家多多支持武林网。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表