• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 10.08.22, 09:54
  • Opened by: Bianca Mitrea
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #23651 - Error 500 in backend and on checkout page

Hello,

After ive updated the theme to version 7.5.0 the site started to get some weird error.
First error is an Error 500 in the backend on some pages and the second one is when the client tries to go to the checkout page.
What may be the problem?

Comments

Fred 10 Aug 2022, 09:55

Hi, Bianca.
Are you talking about qicosmetics.ro?

Bianca Mitrea 10 Aug 2022, 10:04

hello, nop, climatizareonline.ro

Fred 10 Aug 2022, 10:05

Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your Back-office and FTP Server

Bianca Mitrea 10 Aug 2022, 10:09

Done, unfortunately i don’t have FTP acces on this server enabled.

Bianca Mitrea 10 Aug 2022, 10:14

also, another weird thing, after the update Cash on Delivery payment method disappeared in the checkout.

Fred 10 Aug 2022, 10:36

I’m not sure that’s related to the theme.
I have enabled Debug Mode to be able to see error messages and found out two files that make the error - https://take.ms/vRiOVc

Bianca Mitrea 10 Aug 2022, 10:49

/public_html/override/classes/Tools.php error from what i understand is related to a custom module

Fred 10 Aug 2022, 10:49

Yes, right

Bianca Mitrea 10 Aug 2022, 10:51

also this is the error on the checkout page

Warning: Declaration of Tools::getPath($id_category, $path = '', $link_on_the_item = false, $category_type = 'products', ?Context $context = NULL) should be compatible with ToolsCore::getPath($url_base, $id_category, $path = '', $highlight = '', $category_type = 'catalog', $home = false) in /home/c0945442/public_html/override/classes/Tools.php on line 42
Whoops, looks like something went wrong.
(1/1) ContextErrorException
Notice: Trying to access array offset on value of type int

in 21addf2bafc01135aac88e3103a202cea3324c0d_2.file.login-form.tpl.php line 144
at Block_170121972962f35f5b04d2e3_35942102->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_170121972962f35f5b04d2e3_35942102), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_170121972962f35f5b04d2e3_35942102))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_170121972962f35f5b04d2e3_35942102', 'login_form')
in 21addf2bafc01135aac88e3103a202cea3324c0d_2.file.login-form.tpl.php line 27
at content_62f35f5b053f79_06839459(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()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('customer/_partials/login-form.tpl', null, 'alysumchild', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'customer/_partials/login-form.tpl')
in a434aacd1448bbe23a72f62be312e5e2ea8f1312_2.file.login-form.tpl.php line 33
at content_62f35f5b04c1c4_93870401(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 AbstractForm.php line 125
at AbstractFormCore->render(array('file' => 'checkout/_partials/login-form.tpl', 'ui' => object(RenderableProxy)))
in RenderableProxy.php line 52
at RenderableProxy->render(array('file' => 'checkout/_partials/login-form.tpl', 'ui' => object(RenderableProxy)))
in smartyfront.config.inc.php line 98
at smartyRender(array('file' => 'checkout/_partials/login-form.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/_partials/login-form.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))
in b524de80e90b5f99c7e3071c4977b75dc67387c1_2.file.personal-information.tpl.php line 110
at Block_75204418762f35f5b008bf5_25845528->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_75204418762f35f5b008bf5_25845528), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_75204418762f35f5b008bf5_25845528), object(Block_33665668262f35f5b011881_60613048))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_33665668262f35f5b011881_60613048))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_33665668262f35f5b011881_60613048', 'step_content', 1)
in c78fad42b51584b1f04bc234935018ee6c9bb394_2.file.checkout-step.tpl.php line 71
at Block_138386019862f35f5b010272_69563157->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_138386019862f35f5b010272_69563157), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_138386019862f35f5b010272_69563157))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_138386019862f35f5b010272_69563157', 'step')
in c78fad42b51584b1f04bc234935018ee6c9bb394_2.file.checkout-step.tpl.php line 26
at content_62f35f5b011e43_38286115(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()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('checkout/_partials/steps/checkout-step.tpl', null, null, 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/_partials/steps/checkout-step.tpl')
in b524de80e90b5f99c7e3071c4977b75dc67387c1_2.file.personal-information.tpl.php line 33
at content_62f35f5b00ec87_49147188(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 AbstractCheckoutStep.php line 100
at AbstractCheckoutStepCore->renderTemplate('checkout/_partials/steps/personal-information.tpl', array('identifier' => 'checkout-personal-information-step', 'position' => 1, 'ui' => object(RenderableProxy)), array('show_login_form' => false, 'login_form' => object(RenderableProxy), 'register_form' => object(RenderableProxy), 'guest_allowed' => '1', 'empty_cart_on_logout' => true))
in CheckoutPersonalInformationStep.php line 112
at CheckoutPersonalInformationStepCore->render(array('identifier' => 'checkout-personal-information-step', 'position' => 1, 'ui' => object(RenderableProxy)))
in RenderableProxy.php line 52
at RenderableProxy->render(array('identifier' => 'checkout-personal-information-step', 'position' => 1, 'ui' => object(RenderableProxy)))
in smartyfront.config.inc.php line 98
at smartyRender(array('identifier' => 'checkout-personal-information-step', 'position' => 1, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-personal-information-step', 'position' => 1, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))
in 7e5de9db6edbce484c5dc2763381f86eddf8c3bb_2.file.checkout-process.tpl.php line 29
at content_62f35f5b006b05_85481498(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 160
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 a1ea067998bb5e7898f58218bc91be7c79ef9c29_2.file.checkout.tpl.php line 176
at Block_107224394762f35f5ad15e70_90819490->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_107224394762f35f5ad15e70_90819490), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_107224394762f35f5ad15e70_90819490))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_107224394762f35f5ad15e70_90819490', 'checkout_process', 2)
in a1ea067998bb5e7898f58218bc91be7c79ef9c29_2.file.checkout.tpl.php line 217
at Block_129832425162f35f5ad15c07_36641844->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_129832425162f35f5ad15c07_36641844), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_129832425162f35f5ad15c07_36641844))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_129832425162f35f5ad15c07_36641844', 'content')
in a1ea067998bb5e7898f58218bc91be7c79ef9c29_2.file.checkout.tpl.php line 72
at content_62f35f5ad18952_55722648(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, 'alysumchildlayouts/layout-full-width.tpl', null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('checkout/checkout.tpl', null, 'alysumchildlayouts/layout-full-width.tpl', null, false, true, false)
in SmartyDev.php line 40
at SmartyDev->fetch('checkout/checkout.tpl', null, 'alysumchildlayouts/layout-full-width.tpl')
in FrontController.php line 727
at FrontControllerCore->smartyOutputContent('checkout/checkout.tpl')
in FrontController.php line 709
at FrontControllerCore->display()
in Controller.php line 326
at ControllerCore->run()
in Dispatcher.php line 518
at DispatcherCore->dispatch()
in index.php line 28
Bianca Mitrea 10 Aug 2022, 10:55

the idea is that i dont have custom modules that may trigger the error, If i disable all 3rd party modules i still get this error

Fred 10 Aug 2022, 10:56

That doesn’t matter. Just remove the file that generated the error. That is a file added by some third party module

Bianca Mitrea 10 Aug 2022, 10:59

what file?

Fred 10 Aug 2022, 11:00

/public_html/override/classes/Tools.php