Brandi Lee Posted December 16, 2005 Posted December 16, 2005 After I login to my admin, I get this error: Fatal error: Cannot re-assign $this in /home/public_html/admin/includes/classes/upload.php on line 31 I checked the upload.php file and here is the code(up to line37): <?php /* $Id: upload.php,v 1.2 2003/06/20 00:18:30 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ 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; } } } I have not done any updates and I re-uploaded upload.php. I can't figure this out. And of course, I have orders I cannot get to due to this error. Any help sure would be appreciated. Thanks Brandi
Brandi Lee Posted December 16, 2005 Author Posted December 16, 2005 Found it, fixed it: php5 compatibility problem admin/includes/classes/upload.php on line 31, edit $this = null; to this: unset($this); Thanks to user bnet who sent this PM to me: Hello, I can help you but it should be a paying job as I am badly in need of money this christmas. I hope you understand. Here's my online resume for you to see my capabilities. Resume: http://yeahrightsolutions.com/mark/resume.html If interested, just pm me and I will respond in a more detailed manner. Hope to hear from you soon. Best regards, Mark Mabey you could go hang outside the mall and charge people to jump start their cars. Way to go with that xmas spirit. :thumbsup: If you don't want to be a part of the COMMUNITY, thats fine, but you really should not spam people like this. Classless.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.