WordPress.org

Ready to get started?Download WordPress

Forums

Can't import remote files with WordPress' Import function (7 posts)

  1. andreu
    Member
    Posted 5 years ago #

    Hi.

    I was trying to import a WordPress XML file in my self-hosted blog. The XML file was exported from my blog hosted by wordpress.com

    When I try to import it, I select that I want to import the remote files too. But there's a problem with that and in every post it says an error like "Remote file is incorrect size".

    I read here that it is a bug, but the solution they propose is not working for me.

    Any suggestions?
    Thank you!

  2. andreu
    Member
    Posted 5 years ago #

    No idea? :(

  3. TechAdmin-IMCOnAir
    Member
    Posted 5 years ago #

    same for me... is the tech team of wordpress.com or wordpress.org not able to repair this bug ?

  4. vogti
    Member
    Posted 4 years ago #

    I've got the same problem. Need a solution :(

  5. kay102
    Member
    Posted 4 years ago #

    In my case another issue cause the error message in my 2.8.4 installation. I solved it by inserting
    $headers['content-length'] = $headers['content-length'][1]
    right after
    $headers = wp_get_http($url, $upload['file']);
    (line 619) in wp-admin/import/wordpress.php.

    More detailed information can be found on my blog.

  6. tamayo
    Member
    Posted 4 years ago #

    This is what worked for me for the "Remote file is incorrect size" problem.

    PHP safe mode needs to be set to off.

  7. itsonlybarney
    Member
    Posted 4 years ago #

    kay102's solution worked for me. I didn't have to change anything to do with PHP or the webserver.

Topic Closed

This topic has been closed to new replies.

About this Topic