CatZeyeS Posted December 5, 2023 Share Posted December 5, 2023 Hello there, In my newly set up webshop ( https://store.catzeyes.de ) my testuser can select the one item available and place it in the basket. However, as soon as he tries to proceed to checkout, Server Error 500 occurs. The site itself says: Fatal error: Uncaught TypeError: PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption(): Argument #1 ($legacyOption) must be of type array, null given in /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Payment/PaymentOption.php:329 Stack trace: #0 [internal function]: PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption() #1 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/PaymentOptionsFinder.php(46): array_map() #2 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/PaymentOptionsFinder.php(82): PaymentOptionsFinderCore->find() #3 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/CheckoutPaymentStep.php(83): PaymentOptionsFinderCore->present() #4 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Foundation/Templating/RenderableProxy.php(52): CheckoutPaymentStepCore->render() #5 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/config/smartyfront.config.inc.php(100): PrestaShop\PrestaShop\Core\Foundation\Templating\RenderableProxy->render() #6 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyLazyRegister.php(81): smartyRender() #7 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/17/df/0e/17df0ea4ca377fdb4692fa944293944ceb7ce536_2.file.checkout-process.tpl.php(29): SmartyLazyRegister->__call() #8 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf1a6be26_19900493() #9 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #10 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #11 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #12 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #13 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyDevTemplate.php(55): Smarty_Internal_TemplateBase->fetch() #14 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/CheckoutProcess.php(162): SmartyDevTemplateCore->fetch() #15 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Foundation/Templating/RenderableProxy.php(52): CheckoutProcessCore->render() #16 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/config/smartyfront.config.inc.php(100): PrestaShop\PrestaShop\Core\Foundation\Templating\RenderableProxy->render() #17 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyLazyRegister.php(81): smartyRender() #18 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/f0/e8/7c/f0e87cd2972166df53a6f3b785b9288b4b89ba7c_2.file.checkout.tpl.php(70): SmartyLazyRegister->__call() #19 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_1195744193656f1cf13eef16_88169386->callBlock() #20 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #21 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #22 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/f0/e8/7c/f0e87cd2972166df53a6f3b785b9288b4b89ba7c_2.file.checkout.tpl.php(112): Smarty_Internal_Runtime_Inheritance->instanceBlock() #23 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_443270298656f1cf13eea63_57179115->callBlock() #24 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #25 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process() #26 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #27 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/ae/05/06/ae0506b3e2588769630e77a112abff1469f3611a_2.file.layout-full-width.tpl.php(101): Smarty_Internal_Runtime_Inheritance->instanceBlock() #28 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_2064354708656f1cf140b1f9_17599989->callBlock() #29 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #30 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process() #31 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #32 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/92/8e/42/928e427224f3459b0c63bd3b663469ebc6214dcd_2.file.layout-both-columns.tpl.php(94): Smarty_Internal_Runtime_Inheritance->instanceBlock() #33 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf1434b74_82065683() #34 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #35 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #36 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #37 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender() #38 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/ae/05/06/ae0506b3e2588769630e77a112abff1469f3611a_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild() #39 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf140cd89_81538219() #40 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #41 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #42 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #43 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender() #44 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/f0/e8/7c/f0e87cd2972166df53a6f3b785b9288b4b89ba7c_2.file.checkout.tpl.php(46): Smarty_Internal_Runtime_Inheritance->endChild() #45 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf13f2302_23727597() #46 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #47 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #48 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #49 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #50 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyDev.php(40): Smarty_Internal_TemplateBase->fetch() #51 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/controller/FrontController.php(715): SmartyDev->fetch() #52 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/controller/FrontController.php(697): FrontControllerCore->smartyOutputContent() #53 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/controller/Controller.php(339): FrontControllerCore->display() #54 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Dispatcher.php(510): ControllerCore->run() #55 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/index.php(28): DispatcherCore->dispatch() #56 {main} thrown in /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Payment/PaymentOption.php on line 329 (I hope it tells you more than it tells me .. ) I've seen in another thread you recommended to clear the cache, alas I didn't find any instructions. I've found the cache folder inside the installation, but I don't want to delete any files there without your explicit order. Also: The MySQL connection is established otherwise; all other sites are accessible. Can you advise, please? Many thanks in advance, Kai Link to comment Share on other sites More sharing options...
Nickz Posted December 5, 2023 Share Posted December 5, 2023 1 hour ago, CatZeyeS said: my testuser can select the one item available and place it in the basket. However, as soon as he tries to proceed to checkout, Server Error 500 occurs. Your testshop sits on what kind of server? Freeserver, shared server, VPs, Dedicated, Amazon etc.? All requierements satisfied? Clean your caches and test again, don't delete the entire folder, leave the index.php untouched. Link to comment Share on other sites More sharing options...
CatZeyeS Posted December 5, 2023 Author Share Posted December 5, 2023 It's a hosting service (strato.de), so technically I can access everything by FTP. The requirements are met Inside the "cache" folder, there is a file telling me: ***************************** ** D E P R E C A T E D ** ***************************** This folder has been deprecated since PrestaShop 1.7. Make sure your code uses `var/cache/ENV` folder, please use the constant `_PS_CACHE_DIR_` which is available everywhere. So I wonder whether emptying the folder makes any difference .. ?? Link to comment Share on other sites More sharing options...
Nickz Posted December 5, 2023 Share Posted December 5, 2023 Just rename the folder, and create the same folder without content, if there is a index.php copy that to the newly created one. Link to comment Share on other sites More sharing options...
CatZeyeS Posted December 5, 2023 Author Share Posted December 5, 2023 Did as instructed. The error message is this (the same as above, I believe): Fatal error: Uncaught TypeError: PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption(): Argument #1 ($legacyOption) must be of type array, null given in /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Payment/PaymentOption.php:329 Stack trace: #0 [internal function]: PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption() #1 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/PaymentOptionsFinder.php(46): array_map() #2 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/PaymentOptionsFinder.php(82): PaymentOptionsFinderCore->find() #3 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/CheckoutPaymentStep.php(83): PaymentOptionsFinderCore->present() #4 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Foundation/Templating/RenderableProxy.php(52): CheckoutPaymentStepCore->render() #5 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/config/smartyfront.config.inc.php(100): PrestaShop\PrestaShop\Core\Foundation\Templating\RenderableProxy->render() #6 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyLazyRegister.php(81): smartyRender() #7 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/17/df/0e/17df0ea4ca377fdb4692fa944293944ceb7ce536_2.file.checkout-process.tpl.php(29): SmartyLazyRegister->__call() #8 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf1a6be26_19900493() #9 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #10 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #11 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #12 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #13 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyDevTemplate.php(55): Smarty_Internal_TemplateBase->fetch() #14 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/checkout/CheckoutProcess.php(162): SmartyDevTemplateCore->fetch() #15 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Foundation/Templating/RenderableProxy.php(52): CheckoutProcessCore->render() #16 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/config/smartyfront.config.inc.php(100): PrestaShop\PrestaShop\Core\Foundation\Templating\RenderableProxy->render() #17 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyLazyRegister.php(81): smartyRender() #18 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/f0/e8/7c/f0e87cd2972166df53a6f3b785b9288b4b89ba7c_2.file.checkout.tpl.php(70): SmartyLazyRegister->__call() #19 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_1195744193656f1cf13eef16_88169386->callBlock() #20 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #21 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #22 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/f0/e8/7c/f0e87cd2972166df53a6f3b785b9288b4b89ba7c_2.file.checkout.tpl.php(112): Smarty_Internal_Runtime_Inheritance->instanceBlock() #23 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_443270298656f1cf13eea63_57179115->callBlock() #24 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #25 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process() #26 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #27 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/ae/05/06/ae0506b3e2588769630e77a112abff1469f3611a_2.file.layout-full-width.tpl.php(101): Smarty_Internal_Runtime_Inheritance->instanceBlock() #28 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_2064354708656f1cf140b1f9_17599989->callBlock() #29 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #30 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process() #31 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #32 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/92/8e/42/928e427224f3459b0c63bd3b663469ebc6214dcd_2.file.layout-both-columns.tpl.php(94): Smarty_Internal_Runtime_Inheritance->instanceBlock() #33 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf1434b74_82065683() #34 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #35 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #36 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #37 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender() #38 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/ae/05/06/ae0506b3e2588769630e77a112abff1469f3611a_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild() #39 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf140cd89_81538219() #40 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #41 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #42 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #43 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender() #44 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/f0/e8/7c/f0e87cd2972166df53a6f3b785b9288b4b89ba7c_2.file.checkout.tpl.php(46): Smarty_Internal_Runtime_Inheritance->endChild() #45 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656f1cf13f2302_23727597() #46 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #47 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #48 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #49 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #50 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Smarty/SmartyDev.php(40): Smarty_Internal_TemplateBase->fetch() #51 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/controller/FrontController.php(715): SmartyDev->fetch() #52 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/controller/FrontController.php(697): FrontControllerCore->smartyOutputContent() #53 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/controller/Controller.php(339): FrontControllerCore->display() #54 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/classes/Dispatcher.php(510): ControllerCore->run() #55 /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/index.php(28): DispatcherCore->dispatch() #56 {main} thrown in /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Payment/PaymentOption.php on line 329 I'm not a coder, but for me it looks like a faulty call of some function .. ?? (Just a wild guess, based on the first couple of lines ..) Link to comment Share on other sites More sharing options...
CatZeyeS Posted December 5, 2023 Author Share Posted December 5, 2023 (edited) Checking the whole error log again, I guess the important part is directly at the beginning: Argument #1 ($legacyOption) must be of type array, null given in /mnt/web021/e3/85/51320785/htdocs/catzeyes/store/src/Core/Payment/PaymentOption.php:329 So, 'convertLegacyOption()' expects an array but receives "null" Checking the PaymentOption.php at line 329 and following I can see these lines: public static function convertLegacyOption(array $legacyOption) { if (!$legacyOption) { return; } if (array_key_exists('cta_text', $legacyOption)) { $legacyOption = [$legacyOption]; } $newOptions = []; $defaults = [ 'additionalInformation' => null, 'action' => null, 'form' => null, 'method' => null, 'inputs' => [], 'logo' => null, ]; foreach ($legacyOption as $option) { $option = array_merge($defaults, $option); $newOption = new self(); $newOption->setCallToActionText($option['cta_text']) ->setAdditionalInformation($option['additionalInformation']) ->setAction($option['action']) ->setForm($option['form']) ->setInputs($option['inputs']) ->setLogo($option['logo']); $newOptions[] = $newOption; } return $newOptions; } So as much as I get it, at the beginning of this if (!$legacyOption) { return; } if legacyoption is empty or null this method is called upon without an explicit return value. So much for the theory. Then again, I'm no coder - even less one of the people that coded prestashop. What I'm asking for is a solution for this: which settings do I have to set inside prestashop for this error to disappear? Thank you in advance (annotation: Being a Servicedesk guy myself I can appreciate a "I've picked up your request and escalated it, please be paitient for X days until your issue can be adressed" ... ) Edited December 5, 2023 by CatZeyeS (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted December 5, 2023 Share Posted December 5, 2023 (edited) have you seen this: Libary wise here is another indication: https://stackoverflow.com/questions/70914048/argument-1-passed-must-be-of-the-type-array-string-given Edited December 5, 2023 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
CatZeyeS Posted December 5, 2023 Author Share Posted December 5, 2023 Interesting .. Though, frankly: Prestashop is a software running on countless machines operated by the simplest of users ... I have a hard time believing, each of them went through "you'll have to modify the code in certain files in one way or the other" ... So, this aside, it's just a personal preference of mine: I'd rather change a setting within the shop's administrative center instead of changing the code... Link to comment Share on other sites More sharing options...
CatZeyeS Posted December 6, 2023 Author Share Posted December 6, 2023 Nevermind .. I'm switching over to another shop system .. I'm most definetly not into bugfixing a fresh installation .. much less into a support forum filled to the brim with advertising .. this appears highly unprofessional, folks! Thanks anyways ... 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