jboe Posted June 6, 2017 Share Posted June 6, 2017 (edited) Getting a 500 error when trying to get to my admin panel, enabling dev mode revealed this: Fatal error: Class 'Employee' not found in /home/detroitd/public_html/config/config.inc.php on line 182 I have Employee.php in my classes folder, so I'm not sure what's going on here.. Not sure if it makes a difference, but my admin folder was renamed during the prestashop install to a custom name, and I've migrated the website over from one host to another recently. Edited June 6, 2017 by jboe (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted June 6, 2017 Share Posted June 6, 2017 This error often is caused by a missing or damaged file (size zero sometimes happens). Try to replace employee.php and config.inc.php with the same file from of fresh installation of the same PS version. Link to comment Share on other sites More sharing options...
jboe Posted June 6, 2017 Author Share Posted June 6, 2017 This error often is caused by a missing or damaged file (size zero sometimes happens). Try to replace employee.php and config.inc.php with the same file from of fresh installation of the same PS version. Okay, I've replaced both of those and nothing has changed. Link to comment Share on other sites More sharing options...
jboe Posted June 6, 2017 Author Share Posted June 6, 2017 I've had a couple orders since the admin panel went down. Is there a way I can check my orders through PhpMyAdmin? Link to comment Share on other sites More sharing options...
musicmaster Posted June 7, 2017 Share Posted June 7, 2017 Some other suggestions: - empty the cache (the /cache/smarty/cache and /cache/smarty/compile directories) - delete cache/class_index.php: it will automatically be regenerated. - look for other employee related files and replace them. - you could replace the complete admin, classes and controllers directories with those of a fresh installation. - disable non-Prestashop modules and overrides (under Advanced-> Performance) - check the database tables ps_employee and ps_employee_shop to make sure that at least one employee is present. For looking at orders while the backoffice is dysfunctional I recommend my Prestools. It is free and works outside the backoffice. It has also (under Tools$stats->shop rescue) an option to clean the cache. Link to comment Share on other sites More sharing options...
jboe Posted June 7, 2017 Author Share Posted June 7, 2017 (edited) Some other suggestions: - empty the cache (the /cache/smarty/cache and /cache/smarty/compile directories) - delete cache/class_index.php: it will automatically be regenerated. - look for other employee related files and replace them. - you could replace the complete admin, classes and controllers directories with those of a fresh installation. - disable non-Prestashop modules and overrides (under Advanced-> Performance) - check the database tables ps_employee and ps_employee_shop to make sure that at least one employee is present. For looking at orders while the backoffice is dysfunctional I recommend my Prestools. It is free and works outside the backoffice. It has also (under Tools$stats->shop rescue) an option to clean the cache. Okay I've installed Prestools Suite again (had it before, very helpful module) but I'm getting the same error when trying to access /prestoolssuite/index.php: Fatal error: Class 'Employee' not found in /home/detroitd/public_html/config/config.inc.php on line 182 Below I've included a pastebin of my config.inc.php file. Line 182 looks good to me. https://pastebin.com/7MJN645b Edited June 7, 2017 by jboe (see edit history) Link to comment Share on other sites More sharing options...
jboe Posted June 7, 2017 Author Share Posted June 7, 2017 deleting the cache/class_index fixed it. thanks for your help 1 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