User12345678 Posted April 3, 2022 Share Posted April 3, 2022 (edited) Hello, After clicking buy, the product does not appear in the shopping cart. I use Standart installed theme and shopping cart. I tried to disable / uninstall / install the module, clear the cache, change browsers. Does not work. Before the problem occurred: Features and value were created. Also assigned to products and a filter created by features. Maybe somewhere the code needs to be changed? When MySQL opens, it shows the items in the cart. Now run debug mode on shopping cart: https://www.xxxxx.xxx/en/module/ps_shoppingcart/ajax?action=add-to-cart And get this: Whoops, looks like something went wrong. (1/1) ContextErrorException Notice: Trying to access array offset on value of type null in 0de54a7df2ce9f325675562cb8b6164899785ff9_2.module.psshoppingcartmodal.tpl.php line 40 at content_6251c7b6e6fdf8_09239384()in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode()in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render()in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute()in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch()in SmartyDevTemplate.php line 40 at SmartyDevTemplateCore->fetch()in Module.php line 2490 at ModuleCore->fetch()in ps_shoppingcart.php line 148 at Ps_Shoppingcart->renderModal()in ajax.php line 43 at Ps_ShoppingcartAjaxModuleFrontController->initContent()in Controller.php line 306 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28 Any ideas? I tried disabling geolocation, deleting the var folder, disabling the friendly url .... Edited April 10, 2022 by User12345678 update (see edit history) 1 Link to comment Share on other sites More sharing options...
User12345678 Posted April 9, 2022 Author Share Posted April 9, 2022 How to resolve? Link to comment Share on other sites More sharing options...
ComGrafPL Posted April 10, 2022 Share Posted April 10, 2022 PHP version 7.4? geolocation solution works only in some cases. Link to comment Share on other sites More sharing options...
User12345678 Posted April 10, 2022 Author Share Posted April 10, 2022 Yes. Before instal i change it from php 8 to php 7.4 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now