aaacss Posted January 29, 2020 Share Posted January 29, 2020 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 More sharing options...
sergiomagomes Posted January 30, 2020 Share Posted January 30, 2020 (edited) Hi, What version of prestshop and php? Best regards Edited January 30, 2020 by sergiomagomes (see edit history) Link to comment Share on other sites More sharing options...
aaacss Posted January 30, 2020 Author Share Posted January 30, 2020 6 minutes ago, sergiomagomes said: Hi, What version of prestshop and php? Best regards Presta Shop 1.6.1.12 and it looks like 2.0.2 on php Link to comment Share on other sites More sharing options...
aaacss Posted January 30, 2020 Author Share Posted January 30, 2020 9 minutes ago, aaacss said: Presta Shop 1.6.1.12 and it looks like 2.0.2 on php On Hostgator the version of php says: 4.8.3 (I got the 2.0.2 from the PrestaShop files in my webstore folder) Link to comment Share on other sites More sharing options...
aaacss Posted January 30, 2020 Author Share Posted January 30, 2020 3 minutes ago, aaacss said: On Hostgator the version of php says: 4.8.3 (I got the 2.0.2 from the PrestaShop files in my webstore folder) I am also seeing this on the HostGator site. All very confusing Link to comment Share on other sites More sharing options...
aaacss Posted January 30, 2020 Author Share Posted January 30, 2020 I have contacted HostGator and they upgraded to 5.6, but it is still giving the same error. Link to comment Share on other sites More sharing options...
sergiomagomes Posted January 30, 2020 Share Posted January 30, 2020 (edited) 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 January 30, 2020 by sergiomagomes (see edit history) Link to comment Share on other sites More sharing options...
aaacss Posted January 30, 2020 Author Share Posted January 30, 2020 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 More sharing options...
sergiomagomes Posted January 30, 2020 Share Posted January 30, 2020 (edited) Hello, 2 hours ago, aaacss said: I am also seeing this on the HostGator site. All very confusing 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 Edited January 30, 2020 by sergiomagomes (see edit history) Link to comment Share on other sites More sharing options...
aaacss Posted January 30, 2020 Author Share Posted January 30, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now