Jump to content

ERRORE AL CHECKOUT!


Alinotr

Recommended Posts

Buongiorno,

a seguito di aggiornamento modulo di checkout prestashop gli ordini si interrompono dopo il checkout.

Se attivo la modalità di debug trovo questo errori nello step precedente.

Potete aiutarmi per piacere?

 

(1/1) ContextErrorException

Notice: Trying to get property 'active' of non-object

in Customer.php line 24

at Customer->getAddresses(1)in AddressValidator.php line 79

at AddressValidatorCore->validateCustomerAddresses(object(Customer), object(Language))in OrderController.php line 231

at OrderControllerCore->restorePersistedData(object(CheckoutProcess))in OrderController.php line 263

at OrderControllerCore->initContent()in Controller.php line 281

at ControllerCore->run()in Dispatcher.php line 511

at DispatcherCore->dispatch()in index.php line 28

 

 

Link to comment
Share on other sites

Nello step successivo trovo invece questo tipo di errore..

 

(1/1) UndefinedMethodException

Attempted to call an undefined method named "getLocale" of class "Language".
Did you mean to call "getLocaleByIso"?

in ps_emailalerts.php line 552

at Ps_EmailAlerts->hookActionUpdateQuantity(array('id_product' => '26', 'id_product_attribute' => 0, 'quantity' => 647, 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 966

at HookCore::coreCallHook(object(Ps_EmailAlerts), 'hookactionUpdateQuantity', array('id_product' => '26', 'id_product_attribute' => 0, 'quantity' => 647, 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 351

at HookCore::callHookOn(object(Ps_EmailAlerts), 'actionUpdateQuantity', array('id_product' => '26', 'id_product_attribute' => 0, 'quantity' => 647, 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 903

at HookCore::exec('actionUpdateQuantity', array('id_product' => '26', 'id_product_attribute' => 0, 'quantity' => 647, 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in StockAvailable.php line 617

at StockAvailableCore::setQuantity('26', 0, 647, '1', false)in StockAvailable.php line 516

at StockAvailableCore->postSave()in StockAvailable.php line 477

at StockAvailableCore->update()in StockManager.php line 170

at StockManager->updateQuantity(object(Product), '429374', -1, null, false, array())in StockAvailable.php line 543

at StockAvailableCore::updateQuantity('26', '429374', -1)in OrderDetail.php line 494

at OrderDetailCore->checkProductStock(array('id_product_attribute' => '429374', 'id_product' => '26', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'Giacca Softshell ad alta visibilità', 'is_virtual' => '0', 'description_short' => '<p>Offrendo versatilità e grande funzionalità questa elegante giacca è impermeabile e traspirante. Se indossato senza maniche il gilet ha una protezione di livello sul lavoro.</p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '350', 'id_supplier' => '0', 'id_manufacturer' => '42', 'manufacturer_name' => 'PORTWEST', 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => 52.41, 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '20', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'out_of_stock' => '0', 'weight' => 0.0, 'available_date' => '2020-11-25', 'date_add' => '2019-04-22 01:02:33', 'date_upd' => '2021-02-24 18:59:13', 'quantity' => 1, 'link_rewrite' => 'giacca-softshell-ad-alta-visibilita', 'category' => 'softshell-alta-visibilita', 'unique_id' => '000000002600004293743110', 'id_address_delivery' => '311', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '52.410000', 'ecotax_attr' => '0.000000', 'reference' => 'PW-S428_Orange_4XL_NOPERS_1', 'weight_attribute' => 0.0, 'ean13' => '5036108202485', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '26-110276', 'legend' => '', 'reduction_type' => 0, 'is_gift' => false, 'reduction' => 0.0, 'price_without_reduction' => 63.9402, 'specific_prices' => false, 'stock_quantity' => 20, 'price_with_reduction' => 63.9402, 'price_with_reduction_without_tax' => 52.41, 'total' => 52.41, 'total_wt' => 63.9402, 'price_wt' => 63.9402, 'reduction_applies' => false, 'quantity_discount_applies' => false, 'allow_oosp' => 0, 'features' => array(), 'attributes' => 'Scegli il colore : Arancione- Scegli la taglia : 4XL- : NEUTRO (SENZA PERSONALIZZAZIONE)', 'attributes_small' => 'Arancione- 4XL- NEUTRO (SENZA PERSONALIZZAZIONE)', 'rate' => 22.0, 'tax_name' => 'IVA IT 22%', 'warehouse_list' => array(0), 'in_stock' => true, 'carrier_list' => array('27')), '10')in OrderDetail.php line 692

at OrderDetailCore->create(object(Order), object(Cart), array('id_product_attribute' => '429374', 'id_product' => '26', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'Giacca Softshell ad alta visibilità', 'is_virtual' => '0', 'description_short' => '<p>Offrendo versatilità e grande funzionalità questa elegante giacca è impermeabile e traspirante. Se indossato senza maniche il gilet ha una protezione di livello sul lavoro.</p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '350', 'id_supplier' => '0', 'id_manufacturer' => '42', 'manufacturer_name' => 'PORTWEST', 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => 52.41, 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '20', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'out_of_stock' => '0', 'weight' => 0.0, 'available_date' => '2020-11-25', 'date_add' => '2019-04-22 01:02:33', 'date_upd' => '2021-02-24 18:59:13', 'quantity' => 1, 'link_rewrite' => 'giacca-softshell-ad-alta-visibilita', 'category' => 'softshell-alta-visibilita', 'unique_id' => '000000002600004293743110', 'id_address_delivery' => '311', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '52.410000', 'ecotax_attr' => '0.000000', 'reference' => 'PW-S428_Orange_4XL_NOPERS_1', 'weight_attribute' => 0.0, 'ean13' => '5036108202485', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '26-110276', 'legend' => '', 'reduction_type' => 0, 'is_gift' => false, 'reduction' => 0.0, 'price_without_reduction' => 63.9402, 'specific_prices' => false, 'stock_quantity' => 20, 'price_with_reduction' => 63.9402, 'price_with_reduction_without_tax' => 52.41, 'total' => 52.41, 'total_wt' => 63.9402, 'price_wt' => 63.9402, 'reduction_applies' => false, 'quantity_discount_applies' => false, 'allow_oosp' => 0, 'features' => array(), 'attributes' => 'Scegli il colore : Arancione- Scegli la taglia : 4XL- : NEUTRO (SENZA PERSONALIZZAZIONE)', 'attributes_small' => 'Arancione- 4XL- NEUTRO (SENZA PERSONALIZZAZIONE)', 'rate' => 22.0, 'tax_name' => 'IVA IT 22%', 'warehouse_list' => array(0), 'in_stock' => true, 'carrier_list' => array('27')), '10', 0, true, 0)in OrderDetail.php line 733

at OrderDetailCore->createList(object(Order), object(Cart), '10', array(array('id_product_attribute' => '429374', 'id_product' => '26', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'Giacca Softshell ad alta visibilità', 'is_virtual' => '0', 'description_short' => '<p>Offrendo versatilità e grande funzionalità questa elegante giacca è impermeabile e traspirante. Se indossato senza maniche il gilet ha una protezione di livello sul lavoro.</p>', 'available_now' => '', 'available_later' => '', 'id_category_default' => '350', 'id_supplier' => '0', 'id_manufacturer' => '42', 'manufacturer_name' => 'PORTWEST', 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => 52.41, 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '20', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'out_of_stock' => '0', 'weight' => 0.0, 'available_date' => '2020-11-25', 'date_add' => '2019-04-22 01:02:33', 'date_upd' => '2021-02-24 18:59:13', 'quantity' => 1, 'link_rewrite' => 'giacca-softshell-ad-alta-visibilita', 'category' => 'softshell-alta-visibilita', 'unique_id' => '000000002600004293743110', 'id_address_delivery' => '311', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => '52.410000', 'ecotax_attr' => '0.000000', 'reference' => 'PW-S428_Orange_4XL_NOPERS_1', 'weight_attribute' => 0.0, 'ean13' => '5036108202485', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '26-110276', 'legend' => '', 'reduction_type' => 0, 'is_gift' => false, 'reduction' => 0.0, 'price_without_reduction' => 63.9402, 'specific_prices' => false, 'stock_quantity' => 20, 'price_with_reduction' => 63.9402, 'price_with_reduction_without_tax' => 52.41, 'total' => 52.41, 'total_wt' => 63.9402, 'price_wt' => 63.9402, 'reduction_applies' => false, 'quantity_discount_applies' => false, 'allow_oosp' => 0, 'features' => array(), 'attributes' => 'Scegli il colore : Arancione- Scegli la taglia : 4XL- : NEUTRO (SENZA PERSONALIZZAZIONE)', 'attributes_small' => 'Arancione- 4XL- NEUTRO (SENZA PERSONALIZZAZIONE)', 'rate' => 22.0, 'tax_name' => 'IVA IT 22%', 'warehouse_list' => array(0), 'in_stock' => true, 'carrier_list' => array('27'))), 0, true, 0)in PaymentModule.php line 412

at PaymentModuleCore->validateOrder(1467, '10', 74.92, 'Bonifico bancario', null, array('{bankwire_owner}' => 'KING KONG WORK S.R.L.S.', '{bankwire_details}' => 'IT19I0306914410100000002778', '{bankwire_address}' => 'Intesa Sanpaolo S.p.a.'), 1, false, '5e5d441138c55f8a5c12f54e3f588c56')in validation.php line 58

at Ps_WirepaymentValidationModuleFrontController->postProcess()in Controller.php line 270

at ControllerCore->run()in Dispatcher.php line 511

at DispatcherCore->dispatch()in index.php line 28

Link to comment
Share on other sites

Hello.
I have the same issue and the same message
" Whoops, looks like something went wrong.
1/1
UndefinedMethodException in ps_emailalerts.php line 552:
Attempted to call an undefined method named "getLocale" of class "Language".
Did you mean to call "getLocaleByIso"?
in /home/tribekar/public_html/modules/ps_emailalerts/ps_emailalerts.php line 552"

image.thumb.png.14eb4e338a43d9c2f904d8c6fbde9002.png

I guess that the issue is comming from the language, translation. Maybe something is connected to this as I "play" with those options ...
I also install a new Cash on delivery module, available and I have the same behavior.
The order is not finalized.

I REALLY appreciate any help.

Edited by TRIBEKA (see edit history)
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...