crustydod Posted April 17, 2019 Share Posted April 17, 2019 (edited) As soon as cache was cleared, this started happening.. I'm overriding the AdminOrderController.php Here is my override in /override/controllers/admin/AdminOrdersController.php <?php class AdminOrdersController extends AdminOrdersControllerCore { public function postProcess() { } } Yes, an actual blank file as I've removed everything and nothing works. Did I delete the class_index.php? Yes. If it helps, when class_index.php is regenerated, there is no path to the AdminOrderControllerCore, next array is my override. Is that suppost to be like that? EDIT: it actually looks like this: 'AdminOrdersController' => array ( 'path' => '', 'type' => 'class', 'override' => false, ), 'AdminOrdersControllerCore' => array ( 'path' => 'override/controllers/admin/AdminOrdersController.php', 'type' => 'class', 'override' => false, ), Is the file AdminOrderController.php present? Yes and not empty, it is as it is. No matter what I do, all of a sudden this started happening. What's going on? The only difference is that before it worked, cleared cache, not working anymore with the error.. Edited April 17, 2019 by crustydod (see edit history) Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 17, 2019 Share Posted April 17, 2019 In Prestashop 1.7 you will not be able to override classes that uses namespaces. http://build.prestashop.com/news/prestashop-1-7-faq/#can-developers-still-use-overrides-in-17 2 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