Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error after PHP upgrade


vertmonkee

Recommended Posts

Posted

I have just installed PHP 5, previously using version 4.

 

I clicked on my admin section and get the following message

 

 

Fatal error: Cannot re-assign $this in C:\Program Files\Apache Group\Apache2\htdocs\website\catalog\admin\includes\classes\upload.php on line 31

 

It is the "else" section of a statement and is trying to assign "null". If i comment out the line it seems to work but I haven't really tested out everything.

 

Can anyone shed some light on it as i would prefer not to comment it out for obvious reasons.

 

Thanks all

Posted

Or

 

find this code at line 31 of catalog/admin/includes/classes/upload.php

 

$this = null;

 

change to

 

unset($this);

 

and you're done

Posted
Or

 

find this code at line 31 of catalog/admin/includes/classes/upload.php

 

$this = null;

 

change to

 

unset($this);

 

and you're done

That has no effect with php5

Archived

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

×
×
  • Create New...