Title: Ajax editor functions failing: $_REQUEST empty during ajax-admin.php?
Last modified: August 20, 2016

---

# Ajax editor functions failing: $_REQUEST empty during ajax-admin.php?

 *  [msephton](https://wordpress.org/support/users/msephton/)
 * (@msephton)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/_request-empty-during-ajax-adminphp/)
 * Hi,
 * I’ve been developing a WordPress site on my local machine and hosting on my own
   server. Everything runs perfectly.
 * Since moving to the client server, certain functions in the editor have stopped
   working. Specifically, those involving ajax requests. I have looked into things
   and it’s exiting with `die(0)` in `admin-ajax.php` at the following code:
 *     ```
       // Require an action parameter
       if ( empty( $_REQUEST['action'] ) )
       	die( '0' );
       ```
   
 * further reading sees `$_REQUEST` being reset during `wp_magic_quotes()` in `wp-
   includes/load.php` as follows:
 *     ```
       $_REQUEST = array_merge( $_GET, $_POST );
       ```
   
 * What might be the issue with the PHP setup on the server that might make `$_REQUEST`
   remain blank after `wp_magic_quotes()` during `ajax-admin.php`?
 * If I edit `ajax-admin.php` to add the `$_REQUEST` reset:
 *     ```
       $_REQUEST = array_merge( $_GET, $_POST );
   
       // Require an action parameter
       if ( empty( $_REQUEST['action'] ) )
       	die( '0' );
       ```
   
 * …then everything ajax in the editor works as it should.
 * But I would rather not edit core files, so would like to know how I can change
   the server setup to get things working with the standard files?
 * Any help appreciated.
 * Thanks,
    matt

The topic ‘Ajax editor functions failing: $_REQUEST empty during ajax-admin.php?’
is closed to new replies.

## Tags

 * [$_REQUEST](https://wordpress.org/support/topic-tag/_request/)
 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [empty](https://wordpress.org/support/topic-tag/empty/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [msephton](https://wordpress.org/support/users/msephton/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/_request-empty-during-ajax-adminphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
