Jump to content

not configured payment plugin breaks checkout


meinmarkt

Recommended Posts

Hello, 

 

With PS 1.7.0.5, when the payment module SOFORT is installed and enabled but not configured, it breaks the checkout with a fatal error:

 

FatalThrowableError in PaymentOption.php line 304:Type error: Argument 1 passed to PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption() must be of the type array, boolean given
  1. in PaymentOption.php line 304
  2. at PaymentOption::convertLegacyOption(false)
  3. at array_map(array('PrestaShop\PrestaShop\Core\Payment\PaymentOption', 'convertLegacyOption'), array('sofortbanking' => false)) in PaymentOptionsFinder.php line 45
  4. at PaymentOptionsFinderCore->find() in PaymentOptionsFinder.php line 95
  5. at PaymentOptionsFinderCore->present() in CheckoutPaymentStep.php line 75
  6. at CheckoutPaymentStepCore->render(array('identifier' => 'checkout-payment-step', 'position' => '4', 'ui' => object(RenderableProxy))) in RenderableProxy.php line 52
  7. at RenderableProxy->render(array('identifier' => 'checkout-payment-step', 'position' => '4', 'ui' => object(RenderableProxy))) in smartyfront.config.inc.php line 94
  8. at smartyRender(array('identifier' => 'checkout-payment-step', 'position' => '4', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
  9. at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-payment-step', 'position' => '4', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 36
  10. at content_58cbc7b3e76325_26667880(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  11. at Smarty_Internal_TemplateBase->fetch(object(Smarty_Dev_Template), nullnullnullfalsetruefalse) in SmartyDev.php line 60
  12. at Smarty_Dev_Template->fetch() in CheckoutProcess.php line 110
  13. at CheckoutProcessCore->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy))) in RenderableProxy.php line 52
  14. at RenderableProxy->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy))) in smartyfront.config.inc.php line 94
  15. at smartyRender(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
  16. at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(Smarty_Dev_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 146
  17. at content_58cbc7b3a25766_17552986(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  18. at Smarty_Internal_TemplateBase->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), falsetruefalse) in SmartyDev.php line 41
  19. at SmartyDev->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 655
  20. at FrontControllerCore->smartyOutputContent('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl') in FrontController.php line 639
  21. at FrontControllerCore->display() in Controller.php line 221
  22. at ControllerCore->run() in Dispatcher.php line 366
  23. at DispatcherCore->dispatch() in index.php line 28

 

Link to comment
Share on other sites

  • 2 years later...

Same Problems Any Solution For this Problems

(1/1) FatalThrowableError

Type error: Argument 1 passed to PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption() must be of the type array, null given

in PaymentOption.php line 337

at PaymentOption::convertLegacyOption(null)

at array_map(array('PrestaShop\\PrestaShop\\Core\\Payment\\PaymentOption', 'convertLegacyOption'), array('stripe_official' => null))in PaymentOptionsFinder.php line 46

at PaymentOptionsFinderCore->find()in PaymentOptionsFinder.php line 82

at PaymentOptionsFinderCore->present(false)in CheckoutPaymentStep.php line 84

at CheckoutPaymentStepCore->render(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52

at RenderableProxy->render(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 98

at smartyRender(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))in 901ac6360da544620056381bd8057c64b2de4a1a_2.file.checkout-process.tpl.php line 28

at content_5dfc5591b9a3b6_96319656(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40

at SmartyDevTemplateCore->fetch()in CheckoutProcess.php line 112

at CheckoutProcessCore->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52

at RenderableProxy->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 98

at smartyRender(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))in 6aeb5ec4f9dc054bb24b5cf4885904c285b037a1_2.file.checkout.tpl.php line 178

at Block_2325299715dfc559181a8f0_26575033->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_2325299715dfc559181a8f0_26575033), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_2325299715dfc559181a8f0_26575033))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_2325299715dfc559181a8f0_26575033', 'cart_summary', 3)in 6aeb5ec4f9dc054bb24b5cf4885904c285b037a1_2.file.checkout.tpl.php line 217

at Block_8497273285dfc559181a303_42347937->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_8497273285dfc559181a303_42347937), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8497273285dfc559181a303_42347937))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_8497273285dfc559181a303_42347937', 'content')in 6aeb5ec4f9dc054bb24b5cf4885904c285b037a1_2.file.checkout.tpl.php line 71

at content_5dfc5591821ab5_97914665(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('checkout/checkout.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('checkout/checkout.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683

at FrontControllerCore->smartyOutputContent('checkout/checkout.tpl')in FrontController.php line 667

at FrontControllerCore->display()in Controller.php line 312

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

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

Link to comment
Share on other sites

  • 11 months later...
  • 2 months later...
  • 2 weeks later...

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...