Vosteen Posted December 12, 2016 Share Posted December 12, 2016 Hello, I just realized that our stats dashboard isn't working. After clicking on it's tab in the backoffice it just says "controller not found". Can anyone help? Link to comment Share on other sites More sharing options...
rocky Posted December 14, 2016 Share Posted December 14, 2016 Check that controllers/admin/AdminDashboardController.php exists and it contains the following line: class AdminDashboardControllerCore extends AdminController If it does, go to the Administration > Menus tab and make sure the class is AdminDashboard for the "Dashboard" entry. Link to comment Share on other sites More sharing options...
Vosteen Posted December 14, 2016 Author Share Posted December 14, 2016 Check that controllers/admin/AdminDashboardController.php exists and it contains the following line: class AdminDashboardControllerCore extends AdminController If it does, go to the Administration > Menus tab and make sure the class is AdminDashboard for the "Dashboard" entry. Thanks four your reply! Unfortunately everything already seems to be the way you described. So that's not the error :/ In case I wasn't clear enough: I'm not talking about the statistics-overview on the first page of the backoffice. I mean the actual statistics from the menu. Also the statistics module (statistics controllcenter) doesn't seem to work. Link to comment Share on other sites More sharing options...
rocky Posted December 14, 2016 Share Posted December 14, 2016 In that case, make sure controllers/admin/AdminStatsController.php exists and contains the following line: class AdminStatsControllerCore extends AdminStatsTabController Do the same for controllers/admin/AdminStatsTabController.php. Also, go to the Administration > Menus tab, click the down arrow next to the button on the "Stats" row and then choose "Details", then click the "Edit" button next to "Stats" and make sure the class is "AdminStats". If that's all right, then one of those files might have been overridden. I can't think what else would cause the problem. Link to comment Share on other sites More sharing options...
Vosteen Posted December 14, 2016 Author Share Posted December 14, 2016 In that case, make sure controllers/admin/AdminStatsController.php exists and contains the following line: class AdminStatsControllerCore extends AdminStatsTabController Do the same for controllers/admin/AdminStatsTabController.php. Also, go to the Administration > Menus tab, click the down arrow next to the button on the "Stats" row and then choose "Details", then click the "Edit" button next to "Stats" and make sure the class is "AdminStats". If that's all right, then one of those files might have been overridden. I can't think what else would cause the problem. Hmm, I only have AdminStatsTabController.php but not AdminStatsController.php Only AdminStatesController.php. Link to comment Share on other sites More sharing options...
rocky Posted December 14, 2016 Share Posted December 14, 2016 There's your problem. Restore that file from your original PrestaShop archive. If you no longer have it, download the appropriate version from here. Link to comment Share on other sites More sharing options...
Vosteen Posted December 14, 2016 Author Share Posted December 14, 2016 (edited) Now it says "Fatal error: Class 'AdminStatsController' not found in [...]/classes/controller/Controller.php on line 134" Edited December 14, 2016 by Vosteen (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted December 14, 2016 Share Posted December 14, 2016 Try deleting cache/class_index.php. Hopefully, that will force PrestaShop to find the AdminStatsController.php you restored to the controllers/admin directory. Link to comment Share on other sites More sharing options...
Vosteen Posted December 14, 2016 Author Share Posted December 14, 2016 Jepp, it worked (: Thank you very much! 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