风云默示录剧情:Using $this when not in object context in C:\AppServ\www\site1\include\taglib\mynews.lib.php on line
来源:百度文库 编辑:九乡新闻网 时间:2024/04/28 02:54:27
在dedecms中安装了“站内新闻”模块后,更新到栏目的时候,出现错误提示:Using $this when not in object context in C:\AppServ\www\site1\include\taglib\mynews.lib.php on line 16。解决办法如下:
修改include\taglib\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。
Using $this when not in object context in C:\AppServ\www\site1\include\taglib\mynews.lib.php on line
Using ADO & Stored Procedures in C/SIDE
A lesson in context
cocoa - Object allocate and init in Objective C - Stack Overflow
moodle\config.php on line 5
"SSH Connect" in Dashboard context menu
Appeal trial opens on de Villepin's role in C...
zhouweifeng | EXISTS、IN、NOT EXISTS、NOT IN(zt)
Using Custom Indicator in EA (MT4)
What might happen in China this year?
Not the easy living in Mumbai
How To Build an Add-in (XLL) for Excel Using ...
SQL中IN,NOT IN,EXISTS,NOT EXISTS的用法和差别
转帖:时间介词at、on、in
Curbs in more cities on residential properties
介词用法口诀速记~in,on,at
Gangs muscling in on key activities - People'...
Gangs muscling in on key activities - People'...[]
SSO(Single Sign-on) in Action(上篇)
Linux下apache 提示“You don't have permission to access /test.php on this server.”
Europe should not count too much on Chinese c...
Police ordered not to meddle in house demolition
US: adept in starting wars, not ending them -...
China is not what US was in 1945! - Focus dis...