mr_biggles Posted February 16, 2005 Share Posted February 16, 2005 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 More sharing options...
mr_biggles Posted February 16, 2005 Author Share Posted February 16, 2005 Sorry to waste yer time was looking a bit harder and found this post, my problem is now sorted. Thanks anyway http://www.oscommerce.com/forums/index.php?showtopic=136499 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.