找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 93|回复: 0

[cms教程] 织梦dedecms自定义模型提示:Call to a member function GetInne

[复制链接]

该用户从未签到

发表于 2018-9-16 09:58:52 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
织梦dedecms自定义模型提示: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行左右:
        $innerTmp = $arcTag->GetInnerText();
        将其替换为:
        $innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
        或
        if($arcTag==""){
        $innerTmp = trim($arcTag);
        }
        else{
        $innerTmp = trim($arcTag->GetInnerText());
        }
        然后就能正常更新列表页了,问题上解决。
回复

使用道具 举报

网站地图|页面地图|文字地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2024-9-29 11:41

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表