Jump to content

unable to access admin panel, "Class 'Employee' not found"


jboe

Recommended Posts

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 by jboe (see edit history)
Link to comment
Share on other sites

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

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

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 by jboe (see edit history)
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...