Title: 2 MB problem
Last modified: August 19, 2016

---

# 2 MB problem

 *  [doorlight](https://wordpress.org/support/users/doorlight/)
 * (@doorlight)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/2-mb-problem/)
 * Hello. I changed my host, it’s fine, but the only problem is that I can’t import
   my 2.53 mb xml. It just sucks that WP import only allows up to 2MB.
 * How to resolve this? Thanks!!

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

 *  [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834472)
 * I think it is because the PHP limit is set to 2MB and not WP.
 *  [NC@WP](https://wordpress.org/support/users/ncwp/)
 * (@ncwp)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834473)
 * WP itself has no limitations on import file size; it plays within the sandbox
   allowed by the system on which it runs. Whatever limitations you are facing come
   from PHP configuration (more specifically, the `upload_max_filesize` and `post_max_size`
   directives)… It’s possible that your hosting company allows increasing those;
   you should ask…
 *  Thread Starter [doorlight](https://wordpress.org/support/users/doorlight/)
 * (@doorlight)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834480)
 * Thank you. I just messaged my host. :X
 *  [khandor](https://wordpress.org/support/users/khandor/)
 * (@khandor)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834783)
 * I’m trying to switch over from a free account wordpress.com blog to a self-hosted
   blog with wordpress.org software … and running into problems with the 2 MB limitation.
 * According to the XML file I’m trying to import it has 52 000 000 bytes and is
   producing an error message which says that the size of the import file is too
   large to upload to my new blog.
 * Please advise the best method/means to overcome this?
 * Thanks.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834784)
 * If you are self hosted, open and edit php.ini. Locate this line in php.ini, under
   file upload directives.
 * ; Maximum allowed size for uploaded files.
    upload_max_filesize = 2M
 * Change it to reflect your new maximum allowed size.
 * [Edit]
 * I can’t recall for sure, but a restart of Apache may be required after the change.
   Perhaps someone else can verify.
 *  [khandor](https://wordpress.org/support/users/khandor/)
 * (@khandor)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834787)
 * According to my host, that wasn’t the problem as they had reset my import limit
   to accommodate up to 100 MB.
 * Even so … importing the Export File wasn’t working for me until I split the Export
   File into 4 parts and then imported each one separately.
 *  [Jaqueline](https://wordpress.org/support/users/jaqueline/)
 * (@jaqueline)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834799)
 * khandor, how to split the XML file? I have the same problem and I have no idea
   how to split it!
    Thanks!
 *  [khandor](https://wordpress.org/support/users/khandor/)
 * (@khandor)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834801)
 * [I used something called File Splitter 1.31]
 * What I ended up doing to solve the import problem was:
 * 1. Split the original Import File into four (4) parts.
    2. Cut & Pasted everything
   up to the first ‘<item>’ in split file #1 into the beginning of splite file #
   2, #3 and #4. 3. Cut and Pasted
 * ‘</channel>
    </rss>’
 * from the end of splite file #4 into the end of split file #1, #2 and #3.
    4. 
   Saved each of the new split files (i.e. #1-4). 5. Imported each of the new split
   files.
 * =======================================================
 * This seems to have done the trick except for:
 * A) None of the existing video clips are displaying properly on the new version
   of my blog.
 * (e.g. the text is there …
 * [youtube=http://www.youtube.com/watch?v=CHoZ_gvdmNM]
 * but not the vid clip itself)
 * B) The links from my original blogroll have not been imported.
 * C) The number of items associated with each ‘Category’ in the Sidebar hasn’t 
   been imported. [i.e. the (#) on the right of each category item is missing]
 * If anyone can help me out with A, B & C … that would be very much appreciated.
   🙂
 *  [Jaqueline](https://wordpress.org/support/users/jaqueline/)
 * (@jaqueline)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834802)
 * Thanks!! I will try now!
    Did you checked the plug-ins and also your files for
   the theme? I think somethings can be messes up when we move the domain. I had
   a similar problem some years ago… Let’s see if I will face the same problems 
   as you…
 *  [masey](https://wordpress.org/support/users/masey/)
 * (@masey)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834860)
 * Exporting a file over the size of 2MB is proving the problem for me.
 * The XML export always seems to quit out at the 2MB mark cutting about 18 months
   of posts out of my XML file.
 * Does anyone have any solutions here?
 *  [prabackar](https://wordpress.org/support/users/prabackar/)
 * (@prabackar)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834887)
 * Try this there is a utility to split the file automatically. It works perfect.
 * [http://www.gbmini.net/wp/2008/11/splitting_wordpress_export_import_file/](http://www.gbmini.net/wp/2008/11/splitting_wordpress_export_import_file/)
 *  [taguchi](https://wordpress.org/support/users/taguchi/)
 * (@taguchi)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834893)
 * i’ve had the same problem. if you are running your site on shared server, you
   might not be able to edit php.ini, so i fixed it by placing .htaccess in the /
   wordpress.
 * here is the code.
 *     ```
       #Change upload limits
       php_value memory_limit 34M
       php_value post_max_size 33M
       php_value upload_max_filesize 32M
       php_value max_execution_time 600
       #Change upload limits end
       ```
   
 * it does not work always, but worth giving it a try, i think.

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

The topic ‘2 MB problem’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 9 participants
 * Last reply from: [taguchi](https://wordpress.org/support/users/taguchi/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/2-mb-problem/#post-834893)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
