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
admin-ajax.phpat the following code:
// Require an action parameter if ( empty( $_REQUEST['action'] ) ) die( '0' );
further reading sees
$_REQUESTbeing reset during
$_REQUEST = array_merge( $_GET, $_POST );
What might be the issue with the PHP setup on the server that might make
$_REQUESTremain blank after
If I edit
ajax-admin.phpto add the
$_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.
- The topic ‘Ajax editor functions failing: $_REQUEST empty during ajax-admin.php?’ is closed to new replies.