Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem


tangsunx

Recommended Posts

Posted

Hi,

 

After installation, I get a problem as below:

 

Fatal error: Cannot re-assign $this in

e:\AppServ\www\admin\includes\classes\upload.php on line 31

 

Following is php code

 

13> class upload {

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

15>

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

17> $this->set_file($file);

18> $this->set_destination($destination);

19> $this->set_permissions($permissions);

20> $this->set_extensions($extensions);

21>

22> $this->set_output_messages('direct');

23>

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

25> $this->set_output_messages('session');

26>

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

28> return true;

29> } else {

30>// self destruct

31> $this = null;

32>

33> return false;

34> }

35> }

36> }

 

 

Thanks!

Posted

php5 compatibility problem

 

admin/includes/classes/upload.php on line 31,

 

Change:

 

$this = null;

 

to this:

 

unset($this);

 

Good luck

Posted

Worked for me!

 

A million thanks dude!

 

 

php5 compatibility problem

 

admin/includes/classes/upload.php on line 31,

 

Change:

 

$this = null;

 

to this:

 

unset($this);

 

Good luck

Archived

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

×
×
  • Create New...