Jump to content

Recommended Posts

I logged into PrestaShop and clicked on "update all" (which is apparently a fatal mistake) in the modules section and now I can't access my dashboard and my store is down.

I get this error when I go to my store or try dashboard:


Fatal error: Cannot redeclare class FieldsModel in /home4/hrbackground/public_html/Webstore/modules/customfields/models/FieldsModel.php on line 809

If I look at the php file there is nothing about FieldsModel on line 809

My line 809 only has this on it:   }

I have attached my .php file, I hope this helps.

Please help!

 

Thanks

FieldsModel.php

Link to comment
Share on other sites

The error looks like this:

 I would try to do the following:

1- a backup of the module folder customfields(very important)

2- remove/rename the file FieldsModel.php or rename the module folder (example:customfields_bck)

3- see if the store is online

4- if it's ok, reverse the process

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

19 minutes ago, sergiomagomes said:

The error looks like this:

 I would try to do the following:

1- a backup of the module folder customfields(very important)

2- remove/rename the file FieldsModel.php or rename the module folder (example:customfields_bck)

3- see if the store is online

4- if it's ok, reverse the process

Hello, the backup file that I tried gave the same error, which is why I thought perhaps it was a problem with my server php version.  I'm not sure what version of php PrestaShop is running, I can't seem to find any info on it.

Link to comment
Share on other sites

14 hours ago, sergiomagomes said:

 

Hello,

above indicates php 5.4

if you try to remove the folder from the module? After that you cannot have the same error in the same file because there is no file

When I removed it, I got a whole new error.  Upon further investigation, there was another folder created under a different name with a .php file that referenced FieldsModel, I managed to get rid of it, I am now able to access my PrestaShop dashboard, hopefully it will stay fixed.  Took me 7 hours to find it.  Thank you for your help.

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...