admin-ajax.php 400 bad request – whats wrong with my code?

Using chrome dev tools i found the file which was creating the http request.

This file was theme.min.js, i looked at the file & could see “porto_refresh_cart_fragments” though the file was minified so I didn’t know what to remove.

After using a website to unminify the file it was clearer what i needed to remove so i stripped the code from the file because we don’t have a cart on the website so it’s obsolete.

The http request for admin-ajax.php from porto_refresh_cart_fragment is now fixed. I just thought i’d put this information here for future reference in case anyone else get the same issue, though this only worked because we didn’t have a cart, it may help someone.