It looks like there is a misbehaving wp-config.php, plugin, or theme on your site.
If you go to http://niteshrestha.com.np/xmlrpc.php , you’ll see a message saying “XML-RPC server accepts POST requests only.” That’s the correct message. The problem is that there are spaces before the message. This extra space is annoyingly important. 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
I hope this helps.
I opened wp-config.php and it had many spaces before <?php but it don’t have ?> when I edited wp-config.php adding ?> at the last it generated error while opening JetPack it didn’t even Show me Connect to JetPack which was shown previously. Instead it showed me two error saying
Warning: Cannot modify header information – headers already sent by (output started at /home/niteshsh/public_html/wp-config.php:92) in /home/niteshsh/public_html/wp-content/plugins/jetpack/class.jetpack.php on line 3913
Warning: Cannot modify header information – headers already sent by (output started at /home/niteshsh/public_html/wp-config.php:92) in /home/niteshsh/public_html/wp-content/plugins/jetpack/class.jetpack.php on line 3937
I had tried disabling all plugins and then connecting that also didn’t help me
You don’t need to add a closing ?>. Your site should work fine if you just remove the extra spaces before the opening <?php.
Let me know how it goes.
I removed the extra spaces From wp-config.php but still there is error
Could you check line 92 of your wp-config.php file? It seems you’ve added extra characters there.
Something is Automatically adding Blank Spaces in the beginning and end of wp-config.php
It might be your text editor. Could you try with a different editor, like Notepad++ or TextEdit?
I Downloaded the wp-config.php edited it in Notepad++ then Deleted wp-config.php on my server and Uploaded the file I edited and opened Code Editor in My Server and there still is blank spaces added. and it didn’t solve my issue of JetPack
As long as the blank spaces are there, I’m afraid Jetpack won’t work. You’ll need to solve the issue with your text editor and your FTP client first. Once you manage to upload a file without the spaces, you should be all set.
Ok So I just need to remove those spaces form wp-config file
Hey Jeremy I can’t Stop laughing on Myself you know why Just a Click on Wordfence Plugin Solve my issue WordFence warned me that xmlrpc.php was tampered and isn’t the same one that comes with WordPress. I just clicked on Restore Original Version and It Solve my issues. The Reason I went to Wordfence plugin is someone was trying to hack my website and I was there to implement some security measures and xmlrcp.php error was found. Anyway Thank You Jeremy.
I have found a very simple solution of solving xml-rpc