Jump to content

Whoops, looks like something went wrong. 1/1) ContextErrorException Warning: Invalid argument supplied for foreach() in itspecialproducts.php


Oussama abaied

Recommended Posts

Hello everyone,

Can someone help me understand the source of this error , and how to fix it ?  please.

 

Thank you.

 

👇

Whoops, looks like something went wrong.

(1/1) ContextErrorException

Warning: Invalid argument supplied for foreach()

in itspecialproducts.php line 275

at Itspecialproducts->getProducts()in itspecialproducts.php line 290

at Itspecialproducts->hookdisplayPosition4(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 966

at HookCore::coreCallHook(object(Itspecialproducts), 'hookdisplayPosition4', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 351

at HookCore::callHookOn(object(Itspecialproducts), 'displayPosition4', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 903

at HookCore::exec('displayPosition4')in b5f05d0799ce75a487380eec92978e8d33ef843e_2.file.displayPositionBottom.tpl.php line 24

at content_60b24d46161b14_74930911(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:_partials/displayPositionBottom.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in aa55acf422054104a26956858596742d3301f2a1_2.file.layout-both-columns.tpl.php line 326

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

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

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

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_179746608260b24ce7bd2c77_04643449', 'displayPositionBottom')in aa55acf422054104a26956858596742d3301f2a1_2.file.layout-both-columns.tpl.php line 98

at content_60b24ce7bde976_38003923(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 b09227bb64c6202655bff706f8e0eb0f6b499640_2.file.layout-full-width.tpl.php line 42

at content_60b24ce7ba75b1_41102694(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 a241ffe2af6776300707b6c9749824d433427a26_2.file.page.tpl.php line 30

at content_60b24ce7b8f8c0_45851212(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 35833ac3597a8ec8656f202f81912f7fc43e7e27_2.file.index.tpl.php line 30

at content_60b24d453489c7_77035196(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('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 682

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

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

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

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

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