Title: admin-ajax.php adding html tags to response
Last modified: August 21, 2016

---

# admin-ajax.php adding html tags to response

 *  Resolved [goldkey266](https://wordpress.org/support/users/goldkey266/)
 * (@goldkey266)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/admin-ajaxphp-adding-to-response/)
 * I have a strange problem that I am trying to figure out for 3 days. I tried searching
   the forums, google and couldn’t find anything.
 * The file admin-ajax.php is returning responses with extra html, specifically 
   the tags `<html><body>` are wrapped around the response which is breaking the
   page. Those tags aren’t normally there with the response.
 * If you go to Posts and do a Quick Edit and Update on a post, check the response
   returned by admin-ajax.php using Firebug or Developer tools
 * The normal response should be wrapped with `<tr>.....</tr>` in my case it is 
   wrapped with `<html><body><tr>.......</tr></body></html>`
 * I disabled all plugins, installed wordpress from scratch with no plugins using
   the default theme with no luck. This leads me to believe there is some wrong 
   server configuration but I can not figure out 🙁
 * H E L P !!!!!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [goldkey266](https://wordpress.org/support/users/goldkey266/)
 * (@goldkey266)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/admin-ajaxphp-adding-to-response/#post-4654470)
 * I am at a complete loss at this point, I tried doing the following and I get 
   the same problem in all cases:
 * CentOS 6.5 Server running Apache and WordPress 3.8.1 (this is the original server)–
   Problem exists
    CentOS 5.10 default installation running Apache and WordPress
   3.8.1 – Problem exists Ubuntu 12.04 LT LAMP default installation Worpdress 3.8.1–
   Problem exists Ubuntu 12.04 LT LAMP default installation Worpdress 3.6.1 – Problem
   exists
 * I tried multiple browsers (Chrome, Safari, Firefox) – Still no luck!
 *  Thread Starter [goldkey266](https://wordpress.org/support/users/goldkey266/)
 * (@goldkey266)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/admin-ajaxphp-adding-to-response/#post-4654472)
 * Problem solved!!!!!!
 * There was a setting on our Web Application Firewall that forced HTML rewrite 
   that messed up the JSON return values

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘admin-ajax.php adding html tags to response’ is closed to new replies.

## Tags

 * [admin-ajax.php](https://wordpress.org/support/topic-tag/admin-ajax-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [goldkey266](https://wordpress.org/support/users/goldkey266/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/admin-ajaxphp-adding-to-response/#post-4654472)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
