Problems with Live Writer with WordPress

Recently, Live Writer started causing problems in at least two cases:

1. When a new article is created, uploading it sends an error message even though the article is uploaded. Then when trying again creates a new article such that at the time of noticing the case, there are already several articles published with the same name and below appears to be not uploading anything.

2. If an article is already published, updating it sends the error message even though the update is done in the form.

The whole problem is in updating a file line Class-wp-xmlrpc-server.php Which does not send a reply message. The same happens when doing it from any remote platform via metaWeblog method as the case of Blogsy From the iPad / iPhone.

The message looks like this:

The response to the metaWeblog.editPost method received from the blog server was invalid: Invalid response document returned from XmlRpc server.

Live writter problem

Well, the output is this: You have to enter via cPanel or the hosting service to file /public_html/wp-includes/class-wp-xmlrpc-server.php And there look in line 3948 the code:

If (is_array ($ attachments)) {

Foreach ($ attachments as $ file) {

If (strpos ($ post_content, $ file-> guid)! == false)

$ Wpdb-> update ($ wpdb-> posts, array ('post_parent' => $ post_ID), array ('ID' => $ file-> ID));

You have to change it to:

If (is_array ($ attachments)) {

Foreach ($ attachments as $ file) {

If ($ file-> guid &&! ($ File-> guid == NULL))

If (strpos ($ post_content, $ file-> guid)! == false)

$ Wpdb-> update ($ wpdb-> posts, array ('post_parent' => $ post_ID), array ('ID' => $ file-> ID));

Live writter problem

If they are fixed, what we have done is to add the line marked in red.

With this the problem should be solved. With the care that when updating WordPress must do it again until they do not solve it permanently.

Leave an answer

Your email address will not be published.

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