Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error when entering admin section


mr_biggles

Recommended Posts

When i try entering the admin section i get the following error:

 

Fatal error: Cannot re-assign $this in /home/alan/public_html/oscommerce/admin/includes/classes/upload.php on line 31

 

 

the line it mentions is as this:

 

class upload {

var $file, $filename, $destination, $permissions, $extensions, $tmp_filename, $message_location;

 

function upload($file = '', $destination = '', $permissions = '777', $extensions = '') {

$this->set_file($file);

$this->set_destination($destination);

$this->set_permissions($permissions);

$this->set_extensions($extensions);

 

$this->set_output_messages('direct');

 

if (tep_not_null($this->file) && tep_not_null($this->destination)) {

$this->set_output_messages('session');

 

if ( ($this->parse() == true) && ($this->save() == true) ) {

return true;

} else {

// self destruct

$this = null;

 

return false;

}

}

}

 

 

n.b. line 31 is in red.

 

 

i havent touched anything !

 

my server works with register_globals on and i have changed the files as per a fix i found on the forums here or from the osCommerce site.

 

Did i miss something out ?

 

Ta.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...