广告投放

DEDE织梦自定义模型图片内容提示Fatal error:Call to a member function GetInnerText() on a

目录

    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:www/include aglib/channel/img.lib.php on line 51

    或者提示include/custom/fields.func.php on line 539

    这个错误修复方法很简单。
    编辑打开 include/aglib/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());
    }

    编辑include/custom/fields.func.php

    将539行的

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

    替换成

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

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

    声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

    给TA打赏
    共{{data.count}}人
    人已打赏
    广告位招租919838898
    0 条回复 A文章作者 M管理员
      暂无讨论,说说你的看法吧
    个人中心
    购物车
    优惠劵
    今日签到
    有新私信 私信列表
    搜索