vladr Posted January 28, 2005 Share Posted January 28, 2005 Fatal error: Cannot re-assign $this in c:\program files\blabla\www\oscommerce\catalog\admin\includes\classes\upload.php on line 31 This is from upload.php 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; } } } This is line 31: $this = null; How can i fix/repair this problem that apears when try to enter administration page! The catalog works fine (i think). Link to comment Share on other sites More sharing options...
OceanRanch Posted January 28, 2005 Share Posted January 28, 2005 php5 incompatibility. Comment out line 31. //$this = null; HTH Tom Link to comment Share on other sites More sharing options...
vladr Posted January 28, 2005 Author Share Posted January 28, 2005 Thanks! It Worked! Link to comment Share on other sites More sharing options...
vladr Posted January 30, 2005 Author Share Posted January 30, 2005 When i acces the Customers from Administration block i receive the following error: Customers Search:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1 select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, a.entry_country_id from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by c.customers_lastname, c.customers_firstname limit -20, 20 [TEP STOP] How can i fix this ? Link to comment Share on other sites More sharing options...
vladr Posted January 30, 2005 Author Share Posted January 30, 2005 nobody ? Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2005 Share Posted January 30, 2005 http://www.oscommerce.com/community/bugs,1605 Link to comment Share on other sites More sharing options...
vladr Posted January 30, 2005 Author Share Posted January 30, 2005 It worked! Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.