Jump to content

Urgent! Fatal error: Class 'Controller' not found


Abdulmalik

Recommended Posts

Hi,

 

I'm new to prestashop. Just created for education practices.

I'm using 1.5.6.2 because of security issues from the host server. I've removed the default user as recommended then I got this error. I'm not sure what I have to do. Please help me

 

Fatal error: Class 'Controller' not found classes/Dispatcher.php on line341

 

thanks in advance

Link to comment
Share on other sites

I'd try reinstalling. Looks like it hasn't been installed correctly.

 

was running correctly, with products and all settings.

just after dropping the default customer I got this issue.

 

Is it possible to re-install the application without changing the database?

Link to comment
Share on other sites

@Abdulmalik

first of all, just delete a customer should not affect your physical files, it must be something else. have you installed any 3rd party modules recently?

it could be some new installed override class caused the issue. 

 

you can have a try to following

 

1. please check if following file does exist,

YourStoreRoot/classes/controller/Controller.php

 

2. please check following file if it exists

YourStoreRoot/override/classes/controller/Controller.php

 
if it exists please try to rename it to Controller.php.del, maybe this file is not implemented correctly.
 
3. try to remove following file to clear the classes index cache
YourStoreRoot/cache/class_index.php
Edited by shokinro (see edit history)
  • Like 1
Link to comment
Share on other sites

Yes,

 

You can try to refresh the core files by copying the folders classes and controllers from a freshly downloaded zip file.

I tried to follow Shokinro solution and found no issues then tried your suggestion to copy the new copy of both files then refresh the root directory

then I got YourStoreRoot/cache/class_index.php, by deleting this file it worked.

 

Many thanks for your time and your help guys.

I can make this as solved, thanks again

  • Like 1
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...