Jump to content

Fatal error: Cannot redeclare class ProductCore when accessing modules in BO after moving forlder


Recommended Posts

Hello everyone!

I'd made a copy of my shop in another folder in order to test an upgrade (actual version: 1.4.9) in /public_html/presta_upgrade. I'd also make a copy of the DB

I changed __PS_BASE_URI__ to the new folder (presta_update), and parameters on settings.inc.php to use the copied DB.

 

The problem is when accessing modules in BO. I get this error:

 

Fatal error: Cannot redeclare class ProductCore in /public_html/classes/Product.php on line 0

 

You should note the path is for my root shop, as the testing one is located in /public_html/presta_upgrade/

 

Any help on this please???

 

Thanks in advance

Best regards

G

 

 

post-272451-0-17922700-1388760048_thumb.png

Link to comment
Share on other sites

you might try deleting the .htaccess in root of new domain...

 

and also delete cache/class_index.php

 

fingers crossed

I deleted .htaccess and nothing happened

cache/ only has index.php, I tried deleting it with no success

Still geting the error, could it be something on permissions?

All folders are 775, and files 774

Also modules-position has a problem. it gets blank.

post-272451-0-17476900-1388859609_thumb.png

Edited by gabiang (see edit history)
Link to comment
Share on other sites

it's blank probably because one of the modules has got issue with Product class redeclare (it's included somewhere once again - effect: doubled class and error).

 

if I were you, i will try to disable only by one non default modules (unfortunately, manually from prestashop filesystem)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...