WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Jetpack showing error xml_rpc-32700 (31 posts)

  1. infagalaxo
    Member
    Posted 11 months ago #

    Yesterday unknowingly I deactivated my JetPack plugin and just immediately after that I try to activate it. It got activated and ask me to connect my Jetpack to my WordPress.com as usual. Here the problem comes when I try to activate it it gives an error like:

    Your Jetpack has a glitch. Something went wrong that’s never supposed to happen. Guess you’re just lucky: xml_rpc-32700
    Try connecting again. Error Details: The Jetpack server could not communicate with your site's XML-RPC URL. Please check to make sure http://www.infagalaxo.com/xmlrpc.php is working properly. It should show 'XML‑RPC server accepts POST requests only.' on a line by itself when viewed in a browser and should not have any blank links or extra output anywhere.

    http://wordpress.org/plugins/jetpack/

  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Hi!

    As that line states, your xmlrpc.php file needs to display only: "XML‑RPC server accepts POST requests only", but I see errors in your xmlrpc.php file. It suggests that some plugin, theme, or wp-config.php file in your WordPress has extra "whitespace" (new lines, spaces, tabs, ...) before the first "<?php" in the file. This problem is another symptom of a more common problem: the "Headers already sent" problem: http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

    Can you check your wp-config.php, theme files, and plugins for such whitespace?

  3. infagalaxo
    Member
    Posted 11 months ago #

    Hi
    Richard
    Can you show me the detail way to get out of this? Because I just love this plugin and except this am not going to try any thing else. But I don't know how to solve this, sorry am not a master in programming languages.

    So kindly make it ease for me.

    Thank you.

  4. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Hi,

    The link I pointed you to does give some information on how to check for whitespace in your varying files. Try those instructions, and let me know if there's anything that's giving you trouble in particular.

    You may also want to contact your webhost about the first error here:

    http://www.infagalaxo.com/xmlrpc.php

    Warning: ini_set() has been disabled for security reasons in /home/infagala/public_html/wp-includes/load.php on line 278

    That is also affecting Jetpack's connection.

  5. lifeofinterests
    Member
    Posted 10 months ago #

    hi @Richard same problem for me
    http://lifeofinterests.com/xmlrpc.php
    and the solution in that link did not help

  6. lifeofinterests
    Member
    Posted 10 months ago #

    the problem can be solved my just inserting

    if ( defined( 'XMLRPC_REQUEST' ) )
    		ini_set( 'display_errors', 0 );

    in /** */
    ur code will look like

    /**
    if ( defined( 'XMLRPC_REQUEST' ) )
    		ini_set( 'display_errors', 0 );
    */

    hope this helps.

  7. infagalaxo
    Member
    Posted 10 months ago #

    HI
    @lifeofinterests

    I have one doubt where I will find this code and can change it?

  8. lifeofinterests
    Member
    Posted 10 months ago #

    its on line 278 in load.php

  9. lifeofinterests
    Member
    Posted 10 months ago #

    Open your website control panel . I am using Cpanel , if you are using the same well and good it’s easy for me to explain. Browse through /home/yourdomainname/public_html/wp-includes/load.php path. Now we have to edit load.php file. There is a small change in the 278 line. In Cpanel you don’t have number lines for the code. So do what I say, Press ctrl+f to open search box. Type xmlrpc in the search box. You will be directly taken to the line will we have to edit. You will see the following code.

    if ( defined( ‘XMLRPC_REQUEST’ ) )
    ini_set( ‘display_errors’, 0 );
    
    this code should be kept in the comments. After adding the comments the code should look like the below..
    
    /**
    if ( defined( ‘XMLRPC_REQUEST’ ) )
    ini_set( ‘display_errors’, 0 );
    */

    Save the changes. Now go to dashboard and try to connect with wordpress.com site. You will definitely get connected with the wordpress.com site and both the problems will be solved.

    If you test the http://yourdomain.com/xmlrpc.php URL it should display the following message in one line.
    XML-RPC server accepts POST requests only.
    It should look the small when you open with your domain URL. If all is well then after installing jetpack you will see this pic live with your site. Hope this will help you.

  10. infagalaxo
    Member
    Posted 10 months ago #

    You are right,, @lifeofinterests It worked,,
    Thanks a lot, for making it happen,,,,

  11. lifeofinterests
    Member
    Posted 10 months ago #

    Sir,
    kindly change the topic to resolved.

  12. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 10 months ago #

    Done!

  13. zeeshanusuf
    Member
    Posted 9 months ago #

    @lifeofinterests

    Excellent! That worked!

    If it doesn't work for anybody, I'd suggest looking up the plugin support page for basic requirements and plugin conflicts.

  14. amberrenee
    Member
    Posted 6 months ago #

    Hello! Sorry to start this topic up again but I was having the very same issues...

    http://www.miseducated.net/xmlrpc.php

    I tried inserting the part above as stated and it didn't take my error away. I also have another one that seems like it'd be an easy fix.. I hope?

    Thank you so much for reading!

  15. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    @amberrenee If the fix above didn't help, I would suggest that you contact your hosting provider to let them know about the issue. They should be able to help you out.

  16. daniel1009
    Member
    Posted 6 months ago #

    I'm having the same issue. I commented out the above code and it didn't help. Here is my error.

    Error Details: The Jetpack server could not communicate with your site's XML-RPC URL. Please check to make sure http://ncfmaryland.org/xmlrpc.php is working properly. It should show 'XML‑RPC server accepts POST requests only.' on a line by itself when viewed in a browser and should not have any blank links or extra output anywhere.

    It happens after I install the plugin and try to connect to wordpress.com

  17. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    @daniel1009 - please start your own thread - this one is marked resolved so won't be a good place to get help.

    http://wordpress.org/support/plugin/jetpack#postform

  18. daniel1009
    Member
    Posted 6 months ago #

    Thanks - I also posted in the open xml-rpc post, which is basically the same issue.

  19. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    Posting in other people's threads isn't how these forums work. Please start your own.

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

  20. vikkymedia
    Member
    Posted 6 months ago #

    Hello all,
    I faced the same issue & i solved it by
    First deactivate all the plugins and check the jetpack, for max people this is solved by deactivating the other plugins
    If this won't work for you

    Go-to wp-config.php file change and change WP_DEBUG to false and reload, it may work

    define('WP_DEBUG', false);

    Finally check xmlrpc.php which is located on root directory, any white spaces in the code.

  21. vikkymedia
    Member
    Posted 6 months ago #

    Browse wp-includes/load.php path. Now we have to edit load.php file. Type xmlrpc in the search box. You will be directly taken to the line will we have to edit. You will see the following code.

    if ( defined( 'XMLRPC_REQUEST' ) )
    ini_set( 'display_errors', 0 );
    this code should be kept in the comments. After adding the comments the code should look like the below..
    /**
    if ( defined( 'XMLRPC_REQUEST' ) )
    ini_set( 'display_errors', 0 );
    */

  22. clavel.valeska
    Member
    Posted 5 months ago #

    I have this problem with my jetpack

    u sitio necesita ser público para utilizar Jetpack: site_inaccessible Detalles del error: The Jetpack server was unable to communicate with your site http://www.psicologiavenezuela.net [IXR -32300: transport error: http_request_failed Couldn't resolve host 'www.psicologiavenezuela.net']

    Please help me

  23. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 5 months ago #

    @clavel:

    Could you please start your own thread, as per the Forum Welcome?

    http://wordpress.org/support/plugin/jetpack#postform

    Thank you!

  24. virendrapalsingh
    Member
    Posted 2 months ago #

    @clavel.valeska:

    You may find solution to your problem here http://www.technoinfo.info/jetpack-in-wordpress-shows-xml_rpc-32700-on-connecting/

  25. infagalaxo
    Member
    Posted 2 months ago #

    Thread closed.

  26. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 2 months ago #

    virendrapalsingh: that's an interesting solution, but it can slow down Jetpack's response times. Usually it's best to solve the underlying problem of why there is extra whitespace in the xmlrpc.php response, rather than applying this kind of fix to strip the extra whitespace after the fact. But thanks for posting it!

  27. virendrapalsingh
    Member
    Posted 2 months ago #

    Hello Richard,

    Yes it creates a delay. But its better to run a plugin when there are multiple services running associated with it. After applying this user can look for the possible reasons.
    Could you suggest me some possible reasons behind this? It will help me improve quality of my article.

    Thank you!

  28. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 2 months ago #

    Well, the cause of blank lines in the xmlrpc.php response is usually because a file in the site (either the wp-config.php file, a plugin file, or a theme file) has extra whitespace after the closing ?>. Example article that touches on this:

    http://hardcorewp.com/2013/always-omit-closing-php-tags-in-wordpress-plugins/

  29. virendrapalsingh
    Member
    Posted 2 months ago #

    Thanks Richard!

  30. Syllent
    Member
    Posted 2 months ago #

    Hello Richard,

    I have problem with my Jetpack:

    The Jetpack server could not communicate with your site's XML-RPC URL. Please check to make sure http://w-guitars.ru/xmlrpc.php is working properly. It should show 'XML‑RPC server accepts POST requests only.' on a line by itself when viewed in a browser and should not have any blank links or extra output anywhere.

    I checked the wp-config.php, there is no error on the page xmlrpc.php written correctly. I do not know what to do, help me please.

Reply »

You must log in to post.

About this Plugin

About this Topic