Title: Import Failure
Last modified: August 19, 2016

---

# Import Failure

 *  [gabidavila](https://wordpress.org/support/users/gabidavila/)
 * (@gabidavila)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/import-failure/)
 * Hi, I exported the XML with my posts and tags and tryed to Import on my server,
   is VPS, although I raise the memory limit, the import keeps exceding, so I installed
   local and reseved 2GB of memory to PHP, but still is not enough.
 * My XML has 56Mb, I dont know what to do. I tryed moving the database, but I got
   a lot error and PHP and resolved to do a fresh install and just import the posts.

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

 *  Thread Starter [gabidavila](https://wordpress.org/support/users/gabidavila/)
 * (@gabidavila)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/import-failure/#post-1542572)
 * A example of the error:
 * Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   6144 bytes) in C:\xampp\htdocs\wordpress\wp-includes\kses.php(550) : runtime-
   created function on line 1
 * Note that I allowed 2GB
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 11 months ago](https://wordpress.org/support/topic/import-failure/#post-1542590)
 * from [http://codex.wordpress.org/Importing_Content](http://codex.wordpress.org/Importing_Content)
 * > If your exported file is very large, the import script may run into your host’s
   > configured memory limit for PHP.
   > A message like “Fatal error: Allowed memory size of 8388608 bytes exhausted”
   > indicates that the script can’t successfully import your XML file under the
   > current PHP memory limit. If you have access to the php.ini file, you can manually
   > increase the limit; if you do not (your WordPress installation is hosted on
   > a shared server, for instance), you will have to break your exported XML file
   > into several smaller pieces and run the import script one at a time.
   > If the import process is run again with the same data file after stopping midway
   > through, it could result in duplicate data, missing data or other errors in
   > the destination database.
   > For those with shared hosting, the best alternative may be to consult hosting
   > support to determine the safest approach for running the import. A host may
   > be willing to temporarily lift the memory limit and/or run the process directly
   > from their end.
 *  Thread Starter [gabidavila](https://wordpress.org/support/users/gabidavila/)
 * (@gabidavila)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/import-failure/#post-1542618)
 * Even local I got this error. I raised the limit, I think that 2GB its good enough,
   only for the PHP.
 * I did a dump, but I got errors when I updated to version 3, the same errors that
   people are postin here.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 11 months ago](https://wordpress.org/support/topic/import-failure/#post-1542634)
 * I know you say you allocated two gig, but look at this bit:
 * > (tried to allocate 6144 bytes)
 * I don’t think that’s working.
 *  [eitch](https://wordpress.org/support/users/eitch/)
 * (@eitch)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/import-failure/#post-1543122)
 * I’m having the same problem. The XML is too big, and this is a lot frustrating…
   I don’t see a reason why PHP memory usage on this script will grow larger than
   256M. My XML file is also ~ 57MB… I think the code needs some clean up on memory
   usage… 🙁
 *  [eitch](https://wordpress.org/support/users/eitch/)
 * (@eitch)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/import-failure/#post-1543168)
 * We gave up, it’s just too complicated to do this. Instead, we’re planning on 
   migrating by a sql dump / search and replace approach.

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

The topic ‘Import Failure’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 3 participants
 * Last reply from: [eitch](https://wordpress.org/support/users/eitch/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/import-failure/#post-1543168)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
