• After installing on new server I tried uploading (importing) the XML that I exported using WordPress export feature in tools. I’m getting the following error:

    “Sorry, there has been an error.
    File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.”

    I contacted my host and they had me do the following:
    added (changed) the wp-config.php installed in my WordPress folder the following lines:

    define( ‘WP_MEMORY_LIMIT’, ‘995M’ );
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘999M’ );

    Added to my public_html/php.ini file:
    memory_limit = 999M

    I’m still getting the same error.
    The file is 300M
    Maybe importing the XML file form the local server can resolve this issue? I don’t see a way of doing that? I’m really stuck and was hopping someone would be kind enough to offer suggestions.
    Thanks in advance 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    Thread Starter calljoey

    (@calljoey)

    Thanks Tara. I will try, but my backup file is an .XML file not a .sql

    Thread Starter calljoey

    (@calljoey)

    Didn’t work for me. Thanks for your suggestion Tara, I appreciate it.

    Have you tried re-exporting the file?

    Maybe importing the XML file form the local server can resolve this issue? I don’t see a way of doing that?

    Where are you exporting from and importing to?

    Also, if the file is too big, try exporting again but break that export up into smaller pieces.

    Thread Starter calljoey

    (@calljoey)

    Thanks so much WPyogi 🙂
    The only problem is that the original website WordPress server is now offline and everything is lost so I can’t re-export.
    I’ve also tried importing from the local serverNot sure if or how we can break up an existing XML file.
    I also don’t know how to export in smaller chunks 🙁

    I appreciate all your help. It’s sad that one exports the site, but then there is no way of re-importing the content because the XML file is too big…

    You could ask the hosting company if they can help you with this.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Importing content after WordPress installation’ is closed to new replies.