Jump to content

Context Error Exception


Recommended Posts

FIxed !

 

I restored old tpl, but it  only works when debug mod is on, when I turn it off, the BO goes error 500 again because broken tpl is live again...

 

-----------------------------------------

Hello,

 

After a lot of research in both Presta forums and google, I didn't find any solution to my problem that came after modifying product.tpl from my Jarrod's theme.

I get either error 500 in BO when debug off or this page when I want to display any product page :

 

Quote

ContextErrorException

Notice: Trying to get property of non-object

in d6b4d5d81cd33fb0667931eb31e215bf6fb4de85_2.file.product.tpl.php line 222
at Block_501591775c043655e311e3_46176907->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_501591775c043655e311e3_46176907), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_501591775c043655e311e3_46176907))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_501591775c043655e311e3_46176907', 'page_header', 0)in d6b4d5d81cd33fb0667931eb31e215bf6fb4de85_2.file.product.tpl.php line 242
at Block_6649296835c043655e30ba1_26861000->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_6649296835c043655e30ba1_26861000), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_6649296835c043655e30ba1_26861000))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_6649296835c043655e30ba1_26861000', 'page_header_container', 0)in d6b4d5d81cd33fb0667931eb31e215bf6fb4de85_2.file.product.tpl.php line 988
at Block_3470869015c043655e213d6_06392223->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_3470869015c043655e213d6_06392223), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_3470869015c043655e213d6_06392223),object(Block_10443603555c043655ef7989_25852582))in smarty_internal_runtime_inheritance.php line 185
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_10443603555c043655ef7989_25852582))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_10443603555c043655ef7989_25852582', 'content', 1)in 2698368c2932746668d98f7cbebee74e369a79c9_2.file.layout-full-width.tpl.php line 101
at Block_8715681995c043655ef6a70_68913963->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_8715681995c043655ef6a70_68913963), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8715681995c043655ef6a70_68913963),object(Block_15070378725c043655f169c6_25885027))in smarty_internal_runtime_inheritance.php line 185
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_15070378725c043655f169c6_25885027))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_15070378725c043655f169c6_25885027', 'content_wrapper')in 663e50affc29cb6a7b5d5d5282dde2ff8e71bc24_2.file.layout-both-columns.tpl.php line 105
at content_5c043655f21418_48656196(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 206
at Smarty_Internal_Template->render()in smarty_internal_template.php line 365
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 127
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 2698368c2932746668d98f7cbebee74e369a79c9_2.file.layout-full-width.tpl.php line 42
at content_5c043655ef8cd1_27639000(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 206
at Smarty_Internal_Template->render()in smarty_internal_template.php line 365
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 127
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in d6b4d5d81cd33fb0667931eb31e215bf6fb4de85_2.file.product.tpl.php line 54
at content_5c043655e742a8_92830461(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 206
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('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 41
at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 679
at FrontControllerCore->smartyOutputContent('catalog/product.tpl')in FrontController.php line 663
at FrontControllerCore->display()in Controller.php line 275
at ControllerCore->run()in Dispatcher.php line 428
at DispatcherCore->dispatch()in index.php line 28

 

Do you have any clue ?

 

Thanks !

 

PS : I have very few experience in PS, I'm not a dev at all.

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