displayMenu called on non-object

CharacterProfiler.lua file uploading issues

displayMenu called on non-object

Postby ScratchMonkey » Wed Jun 17, 2009 1:46 am

When using curl to upload, pretending to be UniUploader, I get:

<b>Fatal error</b>: Call to a member function displayMenu() on a non-object in <b>/var/www/html/wowroster/roster_svn/index.php</b> on line <b>100</b><br />


Upload command:

curl --user-agent uniuploader -F CharacterProfiler=@C:\Temp\CharacterProfiler.lua.gz -F password= -F submit=Upload http://matureasskickers.net/wowroster/MA/?p=update


Patch against r1984:

Code: Select all
bash-3.1$ svn diff index.php
Index: index.php
===================================================================
--- index.php   (revision 1984)
+++ index.php   (working copy)
@@ -86,19 +86,18 @@
                                require ($file);
                        $content = ob_get_clean();

+                       if( $roster->output['show_header'] )
+                       {
+                               include_once (ROSTER_BASE . 'header.php');
+                       }
+
                        if( $roster->output['show_menu'] )
                        {
                                $roster_menu = new RosterMenu();
                                $roster_menu->makeMenu($roster->output['show_menu']);
+                               $roster_menu->displayMenu();
                        }

-                       if( $roster->output['show_header'] )
-                       {
-                               include_once (ROSTER_BASE . 'header.php');
-                       }
-
-                       $roster_menu->displayMenu();
-
                        echo $content;

                        if( $roster->output['show_footer'] )
Image
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

Re: displayMenu called on non-object

Postby zanix » Wed Jun 17, 2009 2:31 am

Thanks, turns out this needs to be fixed later on in this file and in lib/functions.lib.php as well
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Uploading

Who is online

Users browsing this forum: No registered users and 0 guests

cron