Invision-Graphics Forums

Blog Support – Error With PHP 5 and WordPress xmlrpc.php - Fix

Admin – Wed Jun 06, 2007 1:36 pm
Post subject: – Error With PHP 5 and WordPress xmlrpc.php - Fix

Error With PHP 5 and WordPress xmlrpc.php - Fix

Users experiencing troubles with WordPress built in ping feature, and you're hosted on a PHP 5.2.2 platform -- need to apply this fix to their xmlrpc.php file in order for it to work!

Example you're receiving the following error message:

Quote:
Invalid payload received from xmlrpc server

Server Said:

"XML-RPC accepts post request only"


How to fix this error!

Open up xmlrpc.php in the root directory where WordPress is installed and add the following line:

Code:
if (phpversion()=="5.2.2") $GLOBALS ['HTTP_RAW_POST_DATA'] = file_get_contents('php: // input')


Happy blogging!

Shawn DesRochers
All times are GMT - 5 Hours
Forums Maintained by Invision-Graphics Inc © 2008