Undefined Index / Property of non-object Burp Mirror

Message boards : Server backend and mirrors : Undefined Index / Property of non-object Burp Mirror
Message board moderation

To post messages, you must log in.

AuthorMessage
r-i

Send message
Joined: 7 Jun 06
Posts: 2
Credit: 14,640
RAC: 0
Message 8336 - Posted: 14 May 2008, 1:46:03 UTC

Hi,

I set up the Burp Mirror package on one of my servers a while back and submitted it for activiation (Hmmm) everything was setup fine, passed the initial testing/configuration. It has never been active but recently has started spitting out Undefined index: getid etc errors.

The lines in question are around the 580 mark
$getid = $_GET[\'getid\']; and so on, and when hunting through the code I have found (I think, I\'m not a programmer) that this information is pulled initially from the master mirror server and written to an assembly directory, then on subsequent use is read from that location, MD5 compared to a sum stored somewhere and reused if it matches. My assembly directory is empty bar a CVS directory. Should the Burp Mirror package be able to redownload/recreate this file? Or is it that the mirror has not been activated in a while and has just been forgotten about at the master server side so there is nothing to compare it to, resulting in this files deletion? I never received an \"Errors writing part data to filesystem, permissions for the assembly dir?\" error, and permissions do seem correct.

Could just as easily be a change I made to php.ini while testing some content management systems, but after changing everything I modified back it is still complaining. Maybe the damage is already done, maybe this is not the cause.

If this is an easy fix let me know the steps and I\'ll make it happen, I have the config and key\'s backed up. If its not so easy delete the mirror from the master list and I will recreate/resetup/resubmit and see how it goes a second time around.

Thanks for any help.
ID: 8336 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Janus
Volunteer moderator
Project administrator
Avatar

Send message
Joined: 16 Jun 04
Posts: 4574
Credit: 2,100,463
RAC: 8
Message 8338 - Posted: 14 May 2008, 7:13:01 UTC - in response to Message 8336.  
Last modified: 14 May 2008, 7:19:26 UTC

Hmmmm yes. The mirror software is somewhat old which means that it spits out quite a few notices when PHP runs with notices turned on. These make the server dislike the output that it gets from the mirror.

You can turn off notices for the mirror by adding this line on a seperate line just after the initial \"
error_reporting(E_ERROR | E_WARNING | E_PARSE);


Furthermore I suggest chosing a more suitable name for your mirror (for instance something from a movie). I originally mistook your mirror for someone trying to pull a joke. The name will be displayed when people choose which mirror to download from. You can change it by editing the configuration file located in the mirror directory.
ID: 8338 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
r-i

Send message
Joined: 7 Jun 06
Posts: 2
Credit: 14,640
RAC: 0
Message 8340 - Posted: 14 May 2008, 15:00:06 UTC

Thanks for the reply. Line added to mirror.php.

Sorry about the name, just followed on from my naming pattern without thinking. New name added to config.php.

New name: Loki
Angel of Death in Dogma.
Mad Asgard scientist in SG1.

Hope that\'s more in keeping with the popular movie naming scheme.
ID: 8340 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Janus
Volunteer moderator
Project administrator
Avatar

Send message
Joined: 16 Jun 04
Posts: 4574
Credit: 2,100,463
RAC: 8
Message 8341 - Posted: 14 May 2008, 20:01:06 UTC

Seems to be working better now. The final check is when it is assigned some files by the file distribution system (should happen within a few weeks).
ID: 8341 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Server backend and mirrors : Undefined Index / Property of non-object Burp Mirror