Title: Large XML import problem
Last modified: August 22, 2016

---

# Large XML import problem

 *  [calljoey](https://wordpress.org/support/users/calljoey/)
 * (@calljoey)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/)
 * Is there a way to import a large XML file into wordpress from the local host 
   and not uploading from the computer?
 * If yes, will this resolve the annoying and extremely restrictive file size error
   of importing large xml files?
 * OR is there a toll or plugin I can use?
 * We can put men on the moon, but we are still unable to upload a “larger” xml 
   file to wordpress! lol
 * Thanks for your help in advance.

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

 *  Thread Starter [calljoey](https://wordpress.org/support/users/calljoey/)
 * (@calljoey)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915717)
 * Here’s what I’ve done:
 * wp-config.php file installed in my WordPress folder added:
 * define( ‘WP_MEMORY_LIMIT’, ‘995M’ );
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘999M’ );
 * Added to my public_html/php.ini file:
    memory_limit = 999M
 * Getting:
    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.
 * This has to be the BIGGEST bug/obstacle/limitation PHP or hosts or wordpress 
   has!
    One can’t backup a site and expect to recover it via XML files if they 
   are larger than 2M? Surely ther has to be a solution for this popular problem?
 * Any advice? Thanks all 🙂
 *  Thread Starter [calljoey](https://wordpress.org/support/users/calljoey/)
 * (@calljoey)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915722)
 * Or is there a way to break up the XML file into smaller chunks, or can I upload
   the XML directly into the SQL database using MyPhpAdmin? This is unbelievably
   frustrating! Thanks again for any advice.
 *  Thread Starter [calljoey](https://wordpress.org/support/users/calljoey/)
 * (@calljoey)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915725)
 *  Thread Starter [calljoey](https://wordpress.org/support/users/calljoey/)
 * (@calljoey)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915793)
 * Still looking for a solution, a plug in, anything that can fix this issue. I 
   need to restore my site, I have the XML 312M file and I have no way of importing
   it? Someone in this universe must have a solution. Anyone? Please? Thank you.
 *  Thread Starter [calljoey](https://wordpress.org/support/users/calljoey/)
 * (@calljoey)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915834)
 * Still looking for a solution, maybe someone can help? Thank you
 *  Thread Starter [calljoey](https://wordpress.org/support/users/calljoey/)
 * (@calljoey)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915894)
 * This must be a problem without a solution
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915895)
 * Please don’t post duplicate threads –
 * [https://wordpress.org/support/topic/importing-content-after-wordpress-installation?replies=4](https://wordpress.org/support/topic/importing-content-after-wordpress-installation?replies=4)

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

The topic ‘Large XML import problem’ is closed to new replies.

## Tags

 * [xml](https://wordpress.org/support/topic-tag/xml/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/large-xml-import-problem/#post-5915895)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
