osCommerce Templates | Magento Themes | Free osCommerce Themes - eCommerce Engine

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

How to solve the "Cannot re-assign $this" problem when I run the oscommerce template?

E-mail Print PDF

Q: After I installed the osCommerce template, I go to the administration area, it occurs  "Cannot re-assign $this in ...catalog/admin/includes/classes/upload.php on line 30". How can I solve this problem?

 

The error appears because your OS Commerce is based on PHP4 rather than PHP5. To resolve the error message, you should follow the instructions below:


1. Download  ../catalog/admin/includes/classes/upload.php file and edit it with notepad or other text editor.


2. Find the line (about 30 lines down) that says:

 

// self destruct
$this = null;

 

And change it to:

 

// self destruct
// $this = null;
unset($this);

 

Then save and re-load it to overwrite the old file.

Comments

Acabei de instalar esse modelo Zen Cart. Existe um pacote de idioma para o Português?

--- Luis T.

Saya telah mencoba versi prestashop 1. 4 .1. Tema ini bekerja dengan baik di atasnya.

--- Kobi

Harap dijelaskan lebih lanjut mengenai tutorial banner admin.

--- Kim

Obrigado por seu serviço. Eu tenho mais uma pergunta. Como eu posso mudar a cor do mod_vm_css_menu, o VirtueMart Categorias Menu?

--- Samuel Bispo

Please can you replace the small logo and the large banner with my own and upload to my domain, thanks.

--- Dave

 
You are here: FAQs How to solve the "Cannot re-assign $this" problem when I run the oscommerce template?