dedecms从5.3升级到5.6所遇到的一些问题
2010年8月17日
1、升级后务必清除系统缓存;
2、生成栏目时,提示 Fatal error: Using $this when not in object context in /home/content/l/e/s/lesewang/html/domain_wxshou/shoushen/include/taglib/mynews.lib.php on line 16
修改mynews.lib.php
第 16 行
if($envs['typeid'] > 0) $idsql = ” where typeid=’”.GetTopid($this->TypeID).”‘ “;
这行的$this 会报错,估计是写代码的疏忽照成的,将$this 改成$refObj ,即 整行变为
if($envs['typeid'] > 0) $idsql = ” where typeid=’”.GetTopid($refObj->TypeID).”‘ “;
就可以解决此BUG。
还没有任何评论,你来说两句吧