WordPress 500 internal Server Error xmlrpc.php fix part 2

I had this issue previously and it appeared resolved. But it has returned after upgrading my WordPress installation to 3.x.

So I tried the simple thing of just disabling all my plug-ins but that didn’t do it this time.

I had to do that (disable my plug-ins as described here) and all this too!

I hope this helps some of you. Please make sure you have a complete backup of our MYSQL dbase AND your blog in case you hose something! I am a nut about backups and you should be too.

OK so..

Do this:
1. Using either FTP or CPanel, navigate to your WordPress root directory.
2. You should find the file “xmlrpc.php” there. Make a back up copy of it, just in case. Download it and then.
3. Open xmlrpc.php in an editor
4. Go to the end of the file.
5. Put your cursor after the final ?>
6. Delete anything there, including spaces, or blank lines.
7. Save the edited xmlrpc.php back to your WordPress root directory. [I also changed the permissions on this file to allow the Owner to ‘Execute’ too!]

image

Then:

If you don’t have one (php.ini) then create a text file and name it “php.ini” (without the quotes 😉 ) and with a single line of code in it:

memory=20MB

[If you have one just add that line.]
This file has to be placed into the root directory OR /wp-admin/ within your WordPress installation.
It caused me problems being in the /wp-admin/ directory so I deleted it from there and place it in the root of my blog /mysite/blog/
So keep that in mind!
Also if you are creating the file locally and then uploading it make sure you change the file to a .ini and it does not still have the .txt extension on it.

Then you might want to find your .htaccess file
[It is a hidden file! So if you are using an FTP client make sure you set your ‘filter’ with the ‘-a’ option to ‘see hidden files’ and directories.]
Add this line to the beginning of the file:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
<Files xmlrpc.php>
SecFilterInheritance Off
</Files>

And lastly I did this

Run the following database query to change the data type on the post_parent column:

ALTER TABLE wp_posts CHANGE post_parent post_parent BIGINT;

So after a few hours of aggravation I can now publish posts with loads of content from Window Live Writer again!

UPDATE: This guy here has a new solution for 1&1 users that works well!

11 thoughts on “WordPress 500 internal Server Error xmlrpc.php fix part 2”

  1. I’ve recently started a blog, the information you provide on this site has helped me tremendously. Thank you for all of your time & work.

  2. Pingback: Kasper Suits
  3. Pingback: CP
  4. Thank you, I’ve just been searching for info about this topic for a long time and yours is the best I have discovered so far.

  5. Pingback: Chantelle

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.