WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Importer
[resolved] Stops before importing the first item (7 posts)

  1. Aren Cambre
    Member
    Posted 1 year ago #

    On a WordPress 3.6 network, I can export an XML file from one site. Then when I go to a different site, on the same network, and use the importer to import that XML file, the importer stops and the page stops loading, so I get an incomplete page. For example, if I do a view source on the page, the last thing on that page is this: <h2>Import WordPress</h2>, so there's a lot of tags not closed.

    I get no error whatsoever, and I see no evidence that the content has been imported.

    Expected behavior: It just works, but if it can't, I at least get an error.

    http://wordpress.org/plugins/wordpress-importer/

  2. Aren Cambre
    Member
    Posted 1 year ago #

    I'm pretty sure this is going to be a bug, possibly a untrapped error, so I've opened a bug report at http://core.trac.wordpress.org/ticket/24995.

  3. blepharisma
    Member
    Posted 1 year ago #

    I'm seeing the same problem on our network.

    I've tried the import as both network admin and an individual blog admin - same results.

  4. Aren Cambre
    Member
    Posted 11 months ago #

    The solution is to install the php-xml module. This is noted in http://core.trac.wordpress.org/ticket/24995. The problem here is that the importer does not alert to a dependency on php-xml's code, instead just quitting in the middle of page generation.

  5. greenmoon44
    Member
    Posted 11 months ago #

    Thanks a lot for sharing the solution. This ticket actually refers to another ticket here: http://wordpress.org/support/topic/plugin-import-html-pages-requires-php-xml-if-you-get-error-domdocument-not-found?replies=1

    PHP Fatal error:
    Class 'DOMDocument' not found in
    - /var/www/html/wordpress/wp-content/plugins/import-html-pages/html-import.php on
    - line 570, referer: http://Your_Server_Name/wordpress/wp-admin/options-general.php?page=html-import.php

    Fix - install 'php-xml'
    Fedora: yum install php-xml

    I've been trying to implement it but if I understood it right, the files have different names (/wp-content/plugins/import-html-pages/html-import.php instead of /wp-content/plugins/wordpress-importer/wordpress-importer.php) so that I don't know where to change.

    @Aren would you share your solutions please? :)

  6. Aren Cambre
    Member
    Posted 11 months ago #

    The solution for my case was truly as simple as installing the php-xml module. I think you're barking up the wrong tree with file names. Simply, you appear not to have that module installed. Get it installed. :-)

  7. greenmoon44
    Member
    Posted 11 months ago #

    Thanks for your fast reply and help. It's all fixed. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic