Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error


vladr

Recommended Posts

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

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

Archived

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

×
×
  • Create New...