View Issue Details

IDProjectCategoryView StatusLast Update
0000176WackoWikiactionpublic2009-08-19 09:39
Reporteradministrator Assigned ToTann San  
PrioritynormalSeverityblockReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Version4.3.rcFixed in Version4.3.rc 
Summary0000176: recentcomments / recentlycommented -> Fatal error
DescriptionFatal error: Using $this when not in object context in /actions/recentlycommented.php on line 11

Fatal error: Using $this when not in object context in /actions/recentcomments.php on line 8

($for?"super_comment_on like '".quote($this->dblink, $wacko->NpjTranslit($for))."/%' ":"comment_on != '' ").
Steps To Reproduceif (!isset($root)) $root = $this->UnwrapLink($vars[0]);
TagsNo tags attached.

Activities

Tann San

2008-06-09 21:48

manager   ~0000360

Could you explain how to reproduce this error. Those two pages show up ok for me with the latest SVN download.

administrator

2008-06-11 20:15

administrator   ~0000362

Last edited: 2010-10-17 23:00

just put one of this action in any page or subpage

{{recentcomments}}
{{recentlycommented}}

administrator

2008-06-26 13:08

administrator   ~0000383

Last edited: 2008-06-26 13:17

http://www.webmaster-talk.com/php-forum/43174-fatal-error-using-when-not-object.html

...it's a problem with the script being written for PHP4 and being run on a server with PHP5...

Tann San

2008-06-30 10:24

manager   ~0000387

Was using $this instead of the $wacko reference. In PHP5 using $this is fine since the functions it was written in become part of the main class. In PHP4 they don't so you have to use the passed in Wacko reference.

Issue History

Date Modified Username Field Change
2008-06-01 18:19 administrator New Issue
2008-06-01 18:19 administrator Legacy => NEW
2008-06-09 21:48 Tann San Note Added: 0000360
2008-06-11 20:15 administrator Note Added: 0000362
2008-06-26 13:08 administrator Steps to Reproduce Updated
2008-06-26 13:08 administrator Note Added: 0000383
2008-06-26 13:17 administrator Note Edited: 0000383
2008-06-30 10:24 Tann San Note Added: 0000387
2008-06-30 10:24 Tann San Status new => resolved
2008-06-30 10:24 Tann San Fixed in Version => 5.0.0
2008-06-30 10:24 Tann San Resolution open => fixed
2008-06-30 10:24 Tann San Assigned To => Tann San
2008-06-30 11:33 administrator Note Edited: 0000362
2008-08-23 14:19 administrator Note Edited: 0000362
2009-08-19 09:22 administrator Fixed in Version 5.0.0 => 4.3.rc
2009-08-19 09:39 administrator Target Version 5.0.0 => 4.3.rc
2010-03-08 10:09 administrator Category Action => action
2010-10-17 23:00 administrator Note Edited: 0000362