Title: Call to undefined function xmlrpc_encode_request()
Last modified: August 19, 2016

---

# Call to undefined function xmlrpc_encode_request()

 *  [jjmurray007](https://wordpress.org/support/users/jjmurray007/)
 * (@jjmurray007)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/call-to-undefined-function-xmlrpc_encode_request/)
 * Hello.. I get this fatal error posting!
 * Fatal error: Call to undefined function xmlrpc_encode_request() is coming from
   the server end. I run a php script everywhere on the host server and just get
   this error.
 * I can execute the php script from my locate wamp server to my blog with no problems.
 * Any Ideas?
 * Thanks James

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

 *  [Jeremy Boggs](https://wordpress.org/support/users/jeremyboggs/)
 * (@jeremyboggs)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/call-to-undefined-function-xmlrpc_encode_request/#post-1999406)
 * `xmlrpc_encode_request()` is not used, as far as I can tell, in the current version
   of WordPress, so it may be in a plugin. Try deactivating your plugins until you
   find the culprit. The [PHP documentation for this function](http://php.net/manual/en/function.xmlrpc-encode-request.php)
   includes a warning about the experimental status of this function, and it sounds
   like your host doesn’t support it.
 *  Thread Starter [jjmurray007](https://wordpress.org/support/users/jjmurray007/)
 * (@jjmurray007)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/call-to-undefined-function-xmlrpc_encode_request/#post-1999502)
 * Hi Jeremy…. Thanks for your feedback on this function. I am just puzzled, why
   if I send a post to my blog from a remote computer with the same php scipt it
   works perfect. It should crash all the time with this function call. I have sent
   it from many computers with the same php code all works. Just cannot use this
   script on the host server. I am trying to setup cron jobs with this script. Is
   there any (alternate) function I could use to simulate this xmlrpc request.
 * Thanks again
    James
 *  [Jeremy Boggs](https://wordpress.org/support/users/jeremyboggs/)
 * (@jeremyboggs)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/call-to-undefined-function-xmlrpc_encode_request/#post-1999518)
 * > I am just puzzled, why if I send a post to my blog from a remote computer with
   > the same php scipt it works perfect. It should crash all the time with this
   > function call.
 * Whether the script works or not will depend on whether the server you are running
   it from supports `xmlrpc_encode_request()`. You said earlier:
 * > I can execute the php script from my locate wamp server to my blog with no 
   > problems.
 * This sounds like your local wamp server has or supports `xmlrpc_encode_request()`,
   and likely other things in the [XML-RPC extension for PHP](http://www.php.net/manual/en/intro.xmlrpc.php),
   while the other servers where your running your scripts do not.
 * There likely are other alternatives to this function. I recommend consulting 
   the PHP documentation for the function, which I linked to in my previous post.
 * If you think you should be able to use the XML-RPC extension on your server, 
   you should contact you server administrator or host for support, because this
   doesn’t sound like a WordPress-specific issue.

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

The topic ‘Call to undefined function xmlrpc_encode_request()’ is closed to new 
replies.

## Tags

 * [Fatal error: Call to undefined function](https://wordpress.org/support/topic-tag/fatal-error-call-to-undefined-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Jeremy Boggs](https://wordpress.org/support/users/jeremyboggs/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/call-to-undefined-function-xmlrpc_encode_request/#post-1999518)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
