Jump to content
  • 0

Błąd 500 w koszyku, po wypełnieniu 1 etapu zamówienia


KamikStudio

Question

Błąd 500 w koszyku, po wypełnieniu 1 etapu zamówienia. Gdy wpisze imię, nazwisko (podstawowe dane), zaznacze x3 checboxy i przejdę do kolejnego kroku wyskakuje błąd 500. Gdy odświeże, etap zamawiania idzie dalej.

Gdy włączyłem tryb debugowania to zaraz po wejściu w koszyk otrzymałem błąd:

(1/1) ContextErrorException
Warning: finfo_file(/public_html/modules/home/xxxx/domains/XXXX/public_html/blockreassurance/home/XXXX/domains/XXXX/public_html/views/home/XXXX/domains/XXXX/public_html/img/home/XXXX/domains/XXXX/public_html/img_perso/home/XXXX/domains/XXXX/public_html/liposomal.png): failed to open stream: No such file or directory


in ImageManager.php line 382
at ImageManagerCore::getMimeType('/home/XXXX/domains/XXXX/public_html/modules/home/XXXX/domains/XXXX/public_html/blockreassurance/home/XXXX/domains/XXXX/public_html/views/home/XXXX/domains/XXXX/public_html/img/home/XXXX/domains/XXXX/public_html/img_perso/home/XXXX/domains/XXXX/public_html/liposomal.png')
in ReassuranceActivity.php line 190
at ReassuranceActivity::getAllBlockByStatus(1, 1)
in blockreassurance.php line 517
at blockreassurance->renderTemplateInHook('displayBlockProduct.tpl')
in blockreassurance.php line 409
at blockreassurance->hookdisplayReassurance(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))
in Hook.php line 990
at HookCore::coreCallHook(object(blockreassurance), 'hookDisplayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))
in Hook.php line 414
at HookCore::callHookOn(object(blockreassurance), 'displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))
in Hook.php line 927
at HookCore::exec('displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null)
in smarty.config.inc.php line 167
at smartyHook(array('h' => 'displayReassurance'), object(SmartyDevTemplate))
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayReassurance'), object(SmartyDevTemplate)))
in 21318551cb5b3c846da47476b77a374980b371cc_2.file.cart.tpl.php line 147
at Block_99051052560a2a646259379_53031599->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_99051052560a2a646259379_53031599), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_99051052560a2a646259379_53031599))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_99051052560a2a646259379_53031599', 'hook_reassurance', 0)
in 21318551cb5b3c846da47476b77a374980b371cc_2.file.cart.tpl.php line 238
at Block_176858843660a2a64624fb13_61109790->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_176858843660a2a64624fb13_61109790), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_176858843660a2a64624fb13_61109790), object(Block_187722896860a2a63d59f379_78881485))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_187722896860a2a63d59f379_78881485))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_187722896860a2a63d59f379_78881485', 'content', 1)
in 39dbd9b868ad7b9e32f293cad3bfca4054ae7f70_2.file.layout-left-column.tpl.php line 84
at Block_194800285260a2a63d59d4e2_90291896->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_194800285260a2a63d59d4e2_90291896), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_194800285260a2a63d59d4e2_90291896), object(Block_47593636760a2a63d5ae381_67401972))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_47593636760a2a63d5ae381_67401972))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_47593636760a2a63d5ae381_67401972', 'content_wrapper')
in 5d6a8f364d0df2b0516c5e78c6c6270543d52f48_2.file.layout-both-columns.tpl.php line 93
at content_60a2a63d5b9bc4_83756161(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, 'PRSADD008layouts/layout-left-column.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')
in 39dbd9b868ad7b9e32f293cad3bfca4054ae7f70_2.file.layout-left-column.tpl.php line 38
at content_60a2a63d5a0777_75445081(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-left-column.tpl', null, 'PRSADD008layouts/layout-left-column.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-left-column.tpl')
in 21318551cb5b3c846da47476b77a374980b371cc_2.file.cart.tpl.php line 36
at content_60a2a64625a236_85812408(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, 'PRSADD008layouts/layout-left-column.tpl', null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('checkout/cart.tpl', null, 'PRSADD008layouts/layout-left-column.tpl', null, false, true, false)
in SmartyDev.php line 40
at SmartyDev->fetch('checkout/cart.tpl', null, 'PRSADD008layouts/layout-left-column.tpl')
in FrontController.php line 704
at FrontControllerCore->smartyOutputContent('checkout/cart.tpl')
in FrontController.php line 686
at FrontControllerCore->display()
in Controller.php line 326
at ControllerCore->run()
in Dispatcher.php line 518
at DispatcherCore->dispatch()
in index.php line 28

Konsola pokazuje błąd

No resource with given URL found

screen

1360669539_Zrzutekranu2021-05-17o19_29_41.thumb.png.683a4ad03802d2715c3f8dd658a1a621.png

Czyściłem cache (także w var)

Pytanie jak rozwiązać problem?

Edited by KamikStudio (see edit history)
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Próbowałeś zacząć od wyeliminowania tego?

Warning: finfo_file(/public_html/modules/home/xxxx/domains/XXXX/public_html/blockreassurance/home/XXXX/domains/XXXX/public_html/views/home/XXXX/domains/XXXX/public_html/img/home/XXXX/domains/XXXX/public_html/img_perso/home/XXXX/domains/XXXX/public_html/liposomal.png): failed to open stream: No such file or directory

Jak zachowuje się koszyk po wyłączeniu block reassurance?

Link to comment
Share on other sites

  • 0

Niestety problem jest globalny

Opisywany głównie na github

https://github.com/PrestaShop/blockreassurance/pull/55

w motywie katalog folder /catalog/product.tpl trzeba zmienić na

            {widget name="blockreassurance"}

zamiast hook

Jednak to i tak nie poksutkowało. Moduł nie czyta niestandardowych obrazków, które się w nim ładuje. Problem jest w getMimeType, dokładnie na tym commicie https://github.com/PrestaShop/blockreassurance/commit/37d0fb1eafe8c227281e12e9a1422980b0d76816#diff-e6316994746d2ce5be44c53e7d2527c3R190

Czekam za rozwiązaniem i odpowiedziami w temacie na github i slack'u presty

PS. Problem występuje po aktualizacji presty do najnowszej wersji wraz z modułem (wcześniej było ok). 

Edited by KamikStudio (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...