Jump to content
Sorin M

ContextErrorException

Recommended Posts

Salutare, 

Intampinam aceasta eroare la magazinul nostru cu debug-ul activat la pasii de finalizare comanda.  
Fara debug clientul pare sa treaca mai departe si sa poata plasa comanda. 

Totusi, comenzile au scazut semnificativ in platforma si suspectam ca ar putea fi de la functionalitati defectuoase ale platformei. 
Folosim versiunea 1.7.5, tema Warehouse. 

Au fost modificate cateva fisiere din tema insa doar lucruri ce tin de estetica (modificari ale fisierelor .tpl) 

Stiti cumva de la ce ar putea fi aceste erori? Ma poate ajuta cineva cu un sfat. 

De mentionat ca fisierul dev.log are peste 5Gb si nu il pot deschide. :)

Multumesc anticipat. 
 

Quote

Whoops, looks like something went wrong.

(1/1) ContextErrorException

Notice: Undefined offset: 1863

in 7841cf5ebc8a3488b402b217869b781f1cac1e4c_2.file.order-final-summary.tpl.php line 52

at content_5eb56a5f5c2b31_74596989(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('file:checkout/_partials/order-final-summary.tpl', null, null, 0, 3600, array(), 0, false)in 48d29a75c371afbaa02dbe67c77f1e93995d6122_2.file.payment.tpl.php line 212

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

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

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1830142955eb56a5f56c1e2_21698637), object(Block_1998275755eb569fba1efc9_53591313))in smarty_internal_runtime_inheritance.php line 186

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

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1998275755eb569fba1efc9_53591313', 'step_content', 1)in cfab29843d23bc44cc910315cf58a1216f0857ce_2.file.checkout-step.tpl.php line 72

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

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

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

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9286735535eb569fba1c1f9_56853845', 'step')in cfab29843d23bc44cc910315cf58a1216f0857ce_2.file.checkout-step.tpl.php line 26

at content_5eb569fba1fa09_45744352(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 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/_partials/steps/checkout-step.tpl')in 48d29a75c371afbaa02dbe67c77f1e93995d6122_2.file.payment.tpl.php line 34

at content_5eb56a5f59cb13_23000105(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 96

at AbstractCheckoutStepCore->renderTemplate('checkout/_partials/steps/payment.tpl', array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)), array('is_free' => false, 'payment_options' => array('ps_wirepayment' => array(array('module_name' => 'ps_wirepayment', 'binary' => null, 'action' => 'module/ps_wirepayment/validation', 'form' => null, 'inputs' => null, 'logo' => null, 'additionalInformation' => '<!-- begin module:ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl --><!-- begin ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl -->[continutsters], 'show_final_summary' => '1'))in CheckoutPaymentStep.php line 105

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 104

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 22968cd784cb8c44ea6da33b2a8f300b5c5a975d_2.file.checkout-process.tpl.php line 28

at content_5eb569fb9fd012_35403321(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 104

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 73124fe50b3482164cb369eee2a58fbe87c176e0_2.file.checkout.tpl.php line 41

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

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

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

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_11165535315eb569faee8468_37490473', 'cart_summary', 0)in 73124fe50b3482164cb369eee2a58fbe87c176e0_2.file.checkout.tpl.php line 194

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

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

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17259969305eb569faee76c8_85252905), object(Block_20064240755eb5699485a299_21257149))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_20064240755eb5699485a299_21257149), object(Block_21252186115eb569948693d3_14341093))in smarty_internal_runtime_inheritance.php line 186

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

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_21252186115eb569948693d3_14341093', 'content', 2)in b89d3c5e2856da00713df19b44ab9d6ab1829fa6_2.file.layout-full-width.tpl.php line 135

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

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

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_6867677565eb56994868a78_93524528), object(Block_13781258935eb5699487a993_92129092))in smarty_internal_runtime_inheritance.php line 186

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

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_13781258935eb5699487a993_92129092', 'content_wrapper')in d43f1610ce3d4c72ca4070828fba5d7abe3293c8_2.file.layout-both-columns.tpl.php line 99

at content_5eb56994887538_81220412(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, 'layouts/layout-full-width.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 b89d3c5e2856da00713df19b44ab9d6ab1829fa6_2.file.layout-full-width.tpl.php line 50

at content_5eb5699486a0f8_47412830(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, 'layouts/layout-full-width.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-full-width.tpl')in 9730cb510922e06d31b5836b24b31c5cc0868ce8_2.file.page.tpl.php line 33

at content_5eb5699485f5e4_93965670(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('page.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')in 73124fe50b3482164cb369eee2a58fbe87c176e0_2.file.checkout.tpl.php line 33

at content_5eb569faef3788_49000349(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 682

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

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

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

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

 

Share this post


Link to post
Share on other sites

Asta este doar un Notice si probabil nu va afecteaza procesul de checkout, oricum site-ul trebuie sa functioneze in production mode nu in debug.

Totusi puteti verifica eroarea cu ceva rabdare 🙂 pornind de la fisierul 7841cf5ebc8a3488b402b217869b781f1cac1e4c_2.file.order-final-summary.tpl.php pe care il gasiti in cache.

Cel mai probabil totul pleaca de la o variabila nedefinita.

  • Thanks 1

Share this post


Link to post
Share on other sites
         <?php echo $_smarty_tpl->tpl_vars['customer']->value['addresses'][$_smarty_tpl->tpl_vars['cart']->value['id_address_delivery']]['formatted'];?>

Aceasta este linia cu pricina. 
Am facut verificari si fara debug mode si intr-adevar procesul este functional insa poate trebuie mentionat ca avem deseori clienti care introduc si 5 adrese de livrare (aceleasi adrese) la comanda. Sau nu are legatura? 

Multumesc mult de ajutor. Apreciez. 
 

Share this post


Link to post
Share on other sites

Pare sa nu gaseasca o adresa client cu ID 1863; nu sunt sigur ca afecteaza procesul de checkout sau este posibil sa afecteze doar pentru acel client.

Ar trebui sa urmareste frecventa acestor warning-uri, daca se repeta la fiecare client sau nu, daca nu este ceva particular care apare in anumite conditii.

  • Thanks 1

Share this post


Link to post
Share on other sites

Nu exista client cu id 1863. 
Se pare ca o parte din clienti sunt nevoiti sa isi faca doua conturi la momentul plasarii comenzii. Altii introduc adresa de mai multe ori pana la finalizare. 


Untitled-1.jpg.ac869a109595417bf6e0782a80e64276.jpg

 

De asemenea, in jurnale pe fiecare comanda efectuata imi apar urmatoarele 


image.thumb.png.5e1996c375ee6e94320457c5b30c1db7.png

 

Share this post


Link to post
Share on other sites

Nu cunosc codul modulului Mailchimp deci nu pot afirma 100% ca are o legatura cu problema dar ar fi util sa incerci dezactivarea lui si sa urmaresti daca problema persista; pare ca exista apeluri dublate catre obiectul Cart .

  • Thanks 1

Share this post


Link to post
Share on other sites
12 hours ago, Rhobur said:

Nu cunosc codul modulului Mailchimp deci nu pot afirma 100% ca are o legatura cu problema dar ar fi util sa incerci dezactivarea lui si sa urmaresti daca problema persista; pare ca exista apeluri dublate catre obiectul Cart .

Multumesc. 
Verificam astazi. 

Share this post


Link to post
Share on other sites

Am eliminat modulul. Din pacate la fel 

image.png.6348262016a9425b5aa1ee68e9c356be.png
 

Share this post


Link to post
Share on other sites

Sunt aproape sigur ca este vorba de un modul sau de un override in caz ca mai aveti asa ceva.

Uitati-va la log-ul apache/ngins pentri informatii suplimentare, verificati si versiunea PHP.

  • Thanks 1

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More