• 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)
  • 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 includes a warning about the experimental status of this function, and it sounds like your host doesn’t support it.

    Thread Starter jjmurray007

    (@jjmurray007)

    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

    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, 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.