Import WXR files from server or on plugin activation

I recently patched the WordPress reset plugin to make it possible to reactivate multiple plugins after the reset. Until sivel releases an update you can download the patched version from my server.

As I frequently need to wipe WordPress installs during development I was looking for a way to auto-load some content. Hence this plugin.

Another feature is that you can import WXR files, the WordPress export/import format. You can use files you uploaded to your server. This can be quite useful if you hit an upload limit for example.

WordPress plugin demos are disabled as I don't use WordPress on this site any more.

Published on May 23, 2011 at 10:12 p.m. by Nicolas and tagged development, WordPress plugin, theme, WordPress theme, import, WordPress, plugin. You can follow the discussion with the comment feed for this post. Feeling generous? Donate!

16 comments

  1. avatar
    wrote this comment on
    tried activating WIE .3 on wordpress 3.1.3 today and got this error:


    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/k/w/e/kwest718/html/wordpress/wp-content/plugins/wordpress-importer-extended/wordpress-importer-extended.php on line 30

    thought you should know.
    Reply to this comment
    1. avatar
      wrote this comment on
      Hm, do you use PHP4? This plugin is PHP5 only, I'll add a note to the readme.txt
      Reply to this comment
  2. avatar
    wrote this comment on
    Hi Nicolas,

    getting this error message when trying your plugin with WO 3.13 and php5:

    Warning: Cannot modify header information - headers already sent by (output started at /mnt/web2/13/67/5207267/htdocs/WordPress_01/wp-config.php:87) in /mnt/web2/13/67/5207267/htdocs/WordPress_01/wp-includes/pluggable.php on line 897

    Hope this helps.
    Markus
    Reply to this comment
    1. avatar
      wrote this comment on
      Your problem is on line 87 of the file /mnt/web2/13/67/5207267/htdocs/WordPress_01/wp-config.php , not with my plugin.
      Reply to this comment
  3. avatar
    wrote this comment on
    I'm using WordPress 3.3.1, after click Import nothing happened, not even an error.
    Reply to this comment
    1. avatar
      wrote this comment on
      Interesting. Didn't have any time yet to test the plugin on 3.3.
      Reply to this comment
    2. avatar
      wrote this comment on
      Same here. On 3.3 click import, page reloads, no error, no data imported.
      Reply to this comment
      1. avatar
        wrote this comment on
        Just to make sure, you checked the instructions in the readme.txt? It's been a while I used the plugin, I don't think it does anything useful out of the box without configuration.
        Reply to this comment
        1. avatar
          wrote this comment on
          Hi Nicolas, ive tried the plugin on the latest wp update and doesnt seem to be working wither, click go and it starts to load then just does nothing??
          Reply to this comment
          1. avatar
            wrote this comment on
            Sorry, no idea, haven't done any testing with new WP versions recently.
            Reply to this comment
            1. avatar
              wrote this comment on
              same issue here. hit import and nothing. no time to debug the code tonight.
              Reply to this comment
              1. avatar
                wrote this comment on
                Well like I said just clicking import won't do anything out of the box.
                Reply to this comment
  4. avatar
    wrote this comment on
    It doesn't do anything after hitting the import button. Looks like you abandoned the plugin?
    Reply to this comment
    1. avatar
      wrote this comment on
      Well I stopped using wordpress for my own projects. I still provide services to clients though.
      Reply to this comment
  5. avatar
    wrote this comment on
    My guess is that 99% of the "I clicked and nothing happened" people didn't see the bit in the ReadMe.txt file that tells you to put the following two lines into wp-congfig.php:

    define('WP_LOAD_IMPORTERS', true);
    define('WORDPRESS_IMPORTER_EXTENDED_FETCH_ATTACHMENTS', true);
    Reply to this comment
    1. avatar
      wrote this comment on
      Yeah... maybe I should add some message to the admin page when those aren't set...
      Reply to this comment

Start a new thread

Cancel reply
Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.