Jump to content

Error 500 when when proceeding to payment, after update to 1.7.8.10


Tomi14

Recommended Posts

I have a problem that the store was working normally.
I updated to 1.7.8.10

With debug disabled:
1) Adds the product to the cart
2) I move on
3) Enter the customer's details
4) I choose any payment (przelewy24 or cash on delivery)
----Error 500

With debug enabled
1) Adds the product to the cart
2) I move on
---Error as below

In the meantime, I had another problem, I changed the PHP version to 7.3, then to 8.1 and back to 7.4. The store has had its cache cleared and var/cache manually cleared

 

 

(1/1) ContextErrorException
Warning: file_exists(): open_basedir restriction in effect. File(/views/templates/front/before_carrier.tpl) is not within the allowed path(s): (/home/sklepvid/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/)

in Module.php line 2509
at ModuleCore->getCurrentSubTemplate('/views/templates/front/before_carrier.tpl', null, 'myshop')
in Module.php line 2449
at ModuleCore->display('/home/sklepvid/domains/vidos-domofony.pl/public_html/modules/apaczka/apaczka.php', '/views/templates/front/before_carrier.tpl')
in apaczka.php line 319
at Apaczka->hookDisplayBeforeCarrier(array('cart' => object(Cart), 'cookie' => object(Cookie), 'altern' => 1))
in Hook.php line 1007
at HookCore::coreCallHook(object(Apaczka), 'hookDisplayBeforeCarrier', array('cart' => object(Cart), 'cookie' => object(Cookie), 'altern' => 1))
in Hook.php line 431
at HookCore::callHookOn(object(Apaczka), 'displayBeforeCarrier', array('cart' => object(Cart), 'cookie' => object(Cookie), 'altern' => 1))
in Hook.php line 944
at HookCore::exec('displayBeforeCarrier', array('cart' => object(Cart), 'cookie' => object(Cookie), 'altern' => 1))
in CheckoutDeliveryStep.php line 172
at CheckoutDeliveryStepCore->render(array('identifier' => 'checkout-delivery-step', 'position' => 3, 'ui' => object(RenderableProxy)))
in RenderableProxy.php line 52
at RenderableProxy->render(array('identifier' => 'checkout-delivery-step', 'position' => 3, 'ui' => object(RenderableProxy)))
in smartyfront.config.inc.php line 100
at smartyRender(array('identifier' => 'checkout-delivery-step', 'position' => 3, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-delivery-step', 'position' => 3, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))
in 76c0bfdb713cf66a0b3a52d7dbb9f665335ec814_2.file.checkout-process.tpl.php line 29
at content_6530be1fc8bc26_50604866(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 100
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 cf14feb0e64cd9d6ff8238217e804f5825a68c9d_2.file.checkout.tpl.php line 70
at Block_18830496316530be1fc007b5_78117992->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18830496316530be1fc007b5_78117992), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18830496316530be1fc007b5_78117992))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18830496316530be1fc007b5_78117992', 'checkout_process', 0)
in cf14feb0e64cd9d6ff8238217e804f5825a68c9d_2.file.checkout.tpl.php line 112
at Block_5530814956530be1fc00472_64267996->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_5530814956530be1fc00472_64267996), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_5530814956530be1fc00472_64267996), object(Block_15708613686530be1fc14398_32294144))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_15708613686530be1fc14398_32294144))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_15708613686530be1fc14398_32294144', 'content', 1)
in 8e3b7f6737f7232d539758040cb8fe63e599576b_2.file.layout-full-width.tpl.php line 100
at Block_8614308316530be1fc13ca6_69275327->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_8614308316530be1fc13ca6_69275327), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8614308316530be1fc13ca6_69275327), object(Block_18013873796530be1fc22560_08401018))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18013873796530be1fc22560_08401018))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18013873796530be1fc22560_08401018', 'content_wrapper')
in f0f6d71db40585057e079bd41f9bd17f72133c9f_2.file.layout-both-columns.tpl.php line 91
at content_6530be1fc26f21_23474629(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('layouts/layout-both-columns.tpl', null, 'myshoplayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')
in 8e3b7f6737f7232d539758040cb8fe63e599576b_2.file.layout-full-width.tpl.php line 41
at content_6530be1fc14d97_96715890(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('layouts/layout-full-width.tpl', null, 'myshoplayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')
in cf14feb0e64cd9d6ff8238217e804f5825a68c9d_2.file.checkout.tpl.php line 46
at content_6530be1fc08b40_71244780(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, 'myshoplayouts/layout-full-width.tpl', null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('checkout/checkout.tpl', null, 'myshoplayouts/layout-full-width.tpl', null, false, true, false)
in SmartyDev.php line 40
at SmartyDev->fetch('checkout/checkout.tpl', null, 'myshoplayouts/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 525
at DispatcherCore->dispatch()
in index.php line 28

 

Link to comment
Share on other sites

On 10/19/2023 at 2:56 PM, endriu107 said:

Your issue is from apaczka module.

Even with the apaczka module disabled, I cannot make a purchase.

The cashondelivery and przelewy24 modules throw the same error. Unfortunately, nothing appears in the logs and I don't know how to track it

1.png

Link to comment
Share on other sites

From the error you posted it seems that one module (apaczka) is trying to display a template from its own "views" folder but gets an error - this means that the composed folder path used by the module is not correct as it points somewhere outside the module, so possible cause is that the prestashop config is wrong somewhere where relative paths are defined and used by the module - possibly the new version changed the config files incorrectly or uses different config files that are not configured properly or you changed the path of your installation.

You should check if "_PS_MODULE_DIR_" or other template-related paths to see if they are correctly defined.

Edited by QuickUpdate.net (see edit history)
  • Like 1
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...