Title: ajax-admin.php return 400 sometimes
Last modified: January 31, 2020

---

# ajax-admin.php return 400 sometimes

 *  [tesshsu](https://wordpress.org/support/users/tesshsu/)
 * (@tesshsu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/ajax-admin-php-return-400-sometimes/)
 * Hi experts,
    Issue: go to single product page, click the reservation date and
   return ajax call error 400, this is happend once a which, not all the time Processing:
   go to like this product page: , then click reservation date, it will show the
   total_cost price in the same page via ajax call
 * Env: wp 5.3/ php 7/
 * Resolution:
    I had looking about add_to_cart boutton which call ajax for woocommerce
   to pass the cart page, some mentions it might be cache issue, but not sure if
   this is had to fix cache issue since from document list to disable cache ( my
   version wp is new), and this issue was not occur until recently add some feature
   for product, but not related to any ajax function, more with product descriptions
 * Hope if anyone have this kind of problem please share the solution, tks
    -  This topic was modified 6 years, 4 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fajax-admin-php-return-400-sometimes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [tesshsu](https://wordpress.org/support/users/tesshsu/)
 * (@tesshsu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/ajax-admin-php-return-400-sometimes/#post-12384852)
 * Foud out problem, acutally I had modify js file which is unminify, and that thing
   wordpress default read only minify js or css, add this in order wordpress looking
   only unminify js css file while developement
 * define( ‘SCRIPT_DEBUG’, true );
 * here is the article about it:
    [https://pippinsplugins.com/use-script_debug-enable-non-minified-asset-files/](https://pippinsplugins.com/use-script_debug-enable-non-minified-asset-files/)

Viewing 1 replies (of 1 total)

The topic ‘ajax-admin.php return 400 sometimes’ is closed to new replies.

## Tags

 * [add to cart](https://wordpress.org/support/topic-tag/add-to-cart/)
 * [ajax](https://wordpress.org/support/topic-tag/ajax/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [tesshsu](https://wordpress.org/support/users/tesshsu/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/ajax-admin-php-return-400-sometimes/#post-12384852)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
