WordPress Blogger Importer Plugin Issue: Publishes Articles Saved as Drafts

Written by

in

I’ve noticed in processing the last few Blogger to WordPress migrations for clients that their draft articles are being processed into WordPress as “published” which makes them accessible by readers rather than saved privately in the back end of the site for completion.

After doing some research, I have found that the problem is within the plugin that performs the import itself — the function isDraft was returning a perpetual “false” statement because of an incorrect schema used for parsing the Blogger XML. In order to fix this glitch, you’ll need to open the file blogger-importer-blogitem.php within the Blogger Importer plugin and change the following:

from:

define('SIMPLEPIE_NAMESPACE_ATOMPUB', 'http://www.w3.org/2007/app');

to:

define('SIMPLEPIE_NAMESPACE_ATOMPUB', 'http://purl.org/atom/app#');

Make sure you replace the entire string and that you keep the second string completely intact, including the hash symbol at the end of “app” in order for this to work properly. Importing using the plugin after making this modification should return published, scheduled, and draft articles appropriately.

As always, if you are not comfortable making these changes or would like assistance, contact us for assistance!

Comments

One response to “WordPress Blogger Importer Plugin Issue: Publishes Articles Saved as Drafts”

  1. Andy from Workshopshed Avatar

    Hi Kat,
    I’d value your input into the latest beta version of the importer that can be found at:

    http://core.trac.wordpress.org/attachment/ticket/4010/blogger-importer.zip

    It sorts the draft/publish issue you mention here but also imports images and processes interpost links.

    If you could let me know if it works ok for your examples that would be great.

    Cheers,

    Andy

Leave a Reply

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