mostafamoaz Posted October 28 Share Posted October 28 prestashop version 8.2 list of overrides controllers/admin/AdminCartRulesController.php controllers/admin/AdminCartRulesController.bak.php controllers/front/OrderController.bak.php controllers/front/RegistrationController.php controllers/front/CartController.php controllers/front/OrderController.php controllers/front/CartController.bak.php classes/CartRule.bak.php classes/Cart.bak.php classes/Carrier.php classes/CartRule.php classes/Cart.php modules/ps_emailalerts/ps_emailalerts.bak.php modules/ps_emailalerts/ps_emailalerts.php error i got in debug more Fatal error: Cannot declare class RegistrationController, because the name is already in use in **/override/controllers/front/RegistrationController.php on line 26 even if i disable all overrides or rename registrationcontroller.bak.php still the issue exit and gives an error Warning: require_once(override/controllers/front/RegistrationController.php): Failed to open stream: No such file or directory vendor/prestashop/autoload/src/Autoloader.php on line 103 Fatal error: Uncaught Error: Failed opening required override/controllers/front/RegistrationController.php' (include_path='/home/u959645890/domains/malikaorganic.com/public_html/vendor/pear/pear_exception:/home/u959645890/domains/malikaorganic.com/public_html/vendor/pear/console_getopt:/home/u959645890/domains/malikaorganic.com/public_html/vendor/pear/pear-core-minimal/src:/home/u959645890/domains/malikaorganic.com/public_html/vendor/pear/archive_tar:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in vendor/prestashop/autoload/src/Autoloader.php:103 Stack trace: #0 vendor/prestashop/autoload/src/Autoloader.php(113) : eval()'d code(1): PrestaShop\Autoload\Autoloader->load() #1 vendor/prestashop/autoload/src/Autoloader.php(113): eval() #2 classes/controller/Controller.php(246): PrestaShop\Autoload\Autoloader->load() #3 public_html/classes/Dispatcher.php(504): ControllerCore::getController() #4 index.php(28): DispatcherCore->dispatch() #5 {main} thrown in vendor/prestashop/autoload/src/Autoloader.php on line 103 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted October 28 Share Posted October 28 Hi, when you delete or rename override, you must delete var/cache/prod/class_index.php 1 1 Link to comment Share on other sites More sharing options...
mostafamoaz Posted October 29 Author Share Posted October 29 Perfect, thank you so much 19 hours ago, Prestashop Addict said: Hi, when you delete or rename override, you must delete var/cache/prod/class_index.php Link to comment Share on other sites More sharing options...
Prestashop Addict Posted October 29 Share Posted October 29 Don't forget to change your title post by adding [SOLVED]. 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