magoblanco Posted December 27, 2021 Share Posted December 27, 2021 It happened to me when updating prestashop modules, but I do not identify how to fix it. (1/1) ContextErrorException Warning: Declaration of Cart::updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = 'up', $id_address_delivery = 0, ?Shop $shop = NULL, $auto_add_cart_rule = true, $skipAvailabilityCheckOutOfStock = false) should be compatible with CartCore::updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = 'up', $id_address_delivery = 0, ?Shop $shop = NULL, $auto_add_cart_rule = true, $skipAvailabilityCheckOutOfStock = false, bool $preserveGiftRemoval = true, bool $useOrderPrices = false) in Cart.php at ErrorHandler->handleError(2, 'Declaration of Cart::updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = \'up\', $id_address_delivery = 0, ?Shop $shop = NULL, $auto_add_cart_rule = true, $skipAvailabilityCheckOutOfStock = false) should be compatible with CartCore::updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = \'up\', $id_address_delivery = 0, ?Shop $shop = NULL, $auto_add_cart_rule = true, $skipAvailabilityCheckOutOfStock = false, bool $preserveGiftRemoval = true, bool $useOrderPrices = false)', '/home/lavaldostana.online/public_html/override/classes/Cart.php', 0, array('className' => 'Cart', 'classDir' => '/home/lavaldostana.online/public_html/'))in PrestaShopAutoload.php line 152 at require_once()in PrestaShopAutoload.php line 152 at PrestaShopAutoload->load('Cart')in DebugClassLoader.php line 159 at DebugClassLoader->loadClass('Cart') at spl_autoload_call('Cart')in FrontController.php line 371 at FrontControllerCore->init()in Controller.php line 287 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28 Link to comment Share on other sites More sharing options...
JBW Posted January 4, 2022 Share Posted January 4, 2022 On 12/27/2021 at 5:58 PM, magoblanco said: /override/classes/Cart.php You have a override installed that is not compatible with your Prestashop version. Update the module that installed the override or remove the override 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