Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Ajax functionality stopped working after updating to version 8.1.5
- This topic has 4 replies, 3 voices, and was last updated 5 years, 7 months ago by admin. 
- 
		AuthorPosts
- 
		
			
				
March 30, 2020 at 8:53 am #14788elsassupport ParticipantHi, I recently updated the WP Estore plugin to version 8.1.5. But after updating, the Ajax functionality to add or remove items from my cart has stopped working. If I turn off the setting “Enable Ajax on Add to Cart Buttons” adding and removing items works fine. Things I checked/did to try to fix: – I checked the console in chrome and the Ajax request does not give any errors when adding an item to the cart, I receive a 200 status code from the request and the data response seems normal. But when I go to the cart it is empty. – I deactivated all plugins and switched to a different theme, this didn’t seem to fix the issue. – Don’t see any major errors in the debug log except: [28-Mar-2020 13:24:46 UTC] PHP Notice: Undefined index: variation1 in …/wp-content/plugins/wp-cart-for-digital-products/eStore_ajax.php on line 94 [28-Mar-2020 13:24:46 UTC] PHP Notice: Undefined index: variation2 in …/wp-content/plugins/wp-cart-for-digital-products/eStore_ajax.php on line 95 [28-Mar-2020 13:24:46 UTC] PHP Notice: Undefined index: variation3 in …/wp-content/plugins/wp-cart-for-digital-products/eStore_ajax.php on line 96 [28-Mar-2020 13:24:46 UTC] PHP Notice: Undefined index: variation4 in …/wp-content/plugins/wp-cart-for-digital-products/eStore_ajax.php on line 97 Some Site Diagnostics: WP eStore Version: 8.1.5 WP Version: 5.3.2 WPMU: No MySQL Version: 5.5.5 PHP Version: 7.2.28 CURL Library Present: Yes Debug File Write Permissions: Writable Let me know if you need any additional information. March 30, 2020 at 10:15 pm #80407wzp ModeratorSince all of the listed errors are contained in 1 particular file; perhaps the download was corrupted. Please try re-downloading another copy of the plugin. March 30, 2020 at 11:48 pm #80408admin KeymasterIt is likely something with the variation configuration is going wrong here. I will take a look at your site to see your setup which allow me to understand the issue. I have sent you an email for it. April 1, 2020 at 12:02 pm #80409elsassupport ParticipantHi, I looked at all the caching and made sure nothing was being cached. However this did not fix the issue. I did some more research and found that in your code of the plugin you are not calling session_start(); when adding or removing an item from the cart. If added the function on line 74 and 162 in eStore_ajax.php. Now the cart seems to work just fine. April 2, 2020 at 3:20 am #80410admin KeymasterThank you. I have made some improvements for this after your feedback. That should resolve this. 
- 
		AuthorPosts
- You must be logged in to reply to this topic.