Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot re-assign $this - ADMIN HELP


ikmyer

Recommended Posts

hi all,

 

i have tried seaching for help but found nothing, I have installed OSC correctly but when i try to access the admin page i get the following error.

 

Fatal error: Cannot re-assign $this in C:\...\...\catalog\admin\includes\classes\upload.php on line 31

 

Would anyone be able to provide help in fixing this issue. :(

 

Thanks,

Ikmyer

Link to comment
Share on other sites

Hi

I just ran into the same issue with a client of mine setting up another store.

 

according to the knowledge base on the german support site, this is an issue with PHP 5

 

solution is to change

 

$this = null;

 

to

 

unset($this)

 

But, I don't know if that's the only issue with PHP 5. I need to find this out as well over the coming days ...

 

Carine

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

i changed the what you had said and now i get the following:

 

 

Parse error: syntax error, unexpected T_RETURN, expecting ';' in C:\...\...\...\catalog\admin\includes\classes\upload.php on line 34

 

any ideas?

 

 

 

Thanks!!

ikmyer

Link to comment
Share on other sites

Oops sorry for missing ;

Glad someone was up late at night for me :D

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...