PbootCMS 织梦提示Fatal error_ Using $this when not in object context

COS、CDN
  • 解决方法
    • 打开 /include/taglib/mynews.lib.php 文件,找到以下代码:
      • if($envs['typeid'] > 0) $idsql = " where typeid='".GetTopid($this->TypeID)."' ";
    • 修改为:
      • if($envs['typeid'] > 0) $idsql = " where typeid='".GetTopid($envs->TypeID)."' ";

 

COS、CDN
热门