zoukankan      html  css  js  c++  java
  • 织梦自定义图片字段报错Call to a member function GetInnerText()

    织梦程序当你添加了自定义图片字段时,前台打开当前栏目列表就会出现

    Fatal error: Call to a member function GetInnerText() on string in include aglibchannelimg.lib.php on line 51

    后台出现

    Fatal error: Call to a member function GetInnerText() on a non-object in /include/customfields.func.php on line 539

    解决方法

    打开 /include/customfields.func.php 搜索

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

    改成

    $fvalue = ($ntag=="") ? trim($ntag) : trim($ntag->GetInnerText());

    继续打开 /include/taglib/channel/img.lib.php 搜索

    $innerTmp = $arcTag->GetInnerText();

    改成

    $innerTmp = ($arcTag=="") ? trim($arcTag) : trim($arcTag->GetInnerText());
  • 相关阅读:
    字符串方法
    文件上传路径转虚拟路径
    表结构转excel
    @ModelAttribute
    select
    查询详情在模态框展示
    时间
    mybatis一对多
    bootstrap tab页
    为什么不建议使用WordPress呢?
  • 原文地址:https://www.cnblogs.com/dedehtml/p/9901188.html
Copyright © 2011-2022 走看看