Jump to content

ContextErrorException in shopping cart ajax


ITFreak

Recommended Posts

Hello,

when I try to add products to my cart on my local system, i get the following error in/after the ajax-call to the cart controller:

 

Whoops, looks like something went wrong.
(1/1) ContextErrorException
Notice: Undefined index: urls

in 35655e6409b6198f29dd6e732ef9598dec599880_2.module.psshoppingcartpsshoppingc.php line 84
at content_5b8acc55065b60_86079074(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, 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 41
at SmartyDevTemplateCore->fetch()
in Module.php line 2282
at ModuleCore->fetch('module:ps_shoppingcart/ps_shoppingcart.tpl')
in ps_shoppingcart.php line 98
at Ps_Shoppingcart->renderWidget(null, array('cart' => object(Cart)))
in ajax.php line 49
at Ps_ShoppingcartAjaxModuleFrontController->initContent()
in Controller.php line 255
at ControllerCore->run()
in Dispatcher.php line 428
at DispatcherCore->dispatch()
in index.php line 28

I have no idea where this comes from.

The shoppingcart is modified in CSS design and some HTML edits, but the id's, urls, javascripts etc. are standard.

I hope you can help me.

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

Quote

Notice: Undefined index: urls

 

I believe you are using urls varaible in the tpl file & urls variable is not defined as the the error. Remove (OR Correct) instance of urls from the tpl file & check again.

You can also hide these error by setting debug mode to off but that might break the functionality.

 

 

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...