Struggling with WooCommerce product variations displaying correctly?
Failed to load resource: the server responded with a status of 400 (Bad Request)
/wp-admin/admin-ajax.php
POST https://yourdomain.com/wp-admin/admin-ajax.php 400 (Bad Request)
{ "error": "Invalid product variation data" }Any pointers on common fixes or what to check first for these WooCommerce product variations issues?2 Answers
MD Alamgir Hossain Nahid
Answered 4 days agoHello Isabella Jones, I know that feeling of pulling your hair out trying to fix these things โ itโs a common 'variation' (pun intended!) of admin-ajax.php issues; that 400 'Bad Request' with 'Invalid product variation data' is incredibly frustrating.
- First, go to WooCommerce > Status > Tools and clear 'WooCommerce Transients' and 'Expired Transients' to resolve potential
product data integrityproblems. - Next, edit one of the affected variable products, make a minor change to a variation (e.g., update stock, then change back), and save to force a refresh of the variation data.
- If
AJAX errorspersist, temporarily switch to a default theme like Storefront and disable other plugins to rule out theme/plugin conflicts post-update.
Isabella Jones
Answered 1 day agoHey MD Alamgir Hossain Nahid, your reply really hit different after struggling with this WooCommerce issue for days. The clear steps on clearing transients and forcing a variation refresh are exactly what I needed to try first. Seriously appreciate you laying out that plan so well!