`
mengdejun
  • 浏览: 400723 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

dedecms自定义模型 数据类型选择图片 报错

    博客分类:
  • Cms
PHP 
阅读更多

适用版本:V5之前版本/通用dedecms自定义模型中如果字段中出现图片字段类型,那么在生成页面解析的时辰就会出现无法出产htm的情况
解决方式是更改一个文件举行判断下include\taglib\channel目录下有个img.lib.php文件找到这行

$innerTmp=$arcTag-GetInnerText();

 

Fatal error: Call to a member function GetInnerText() on a non-object in D:\wwwroot\szv1\include\taglib\channel\img.lib.php on line 42

替换为

 

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

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics