2 MB problem (13 posts)

  1. doorlight
    Posted 7 years ago #

    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!!

  2. Lester Chan
    Posted 7 years ago #

    I think it is because the PHP limit is set to 2MB and not WP.

  3. NC@WP
    Posted 7 years ago #

    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...

  4. doorlight
    Posted 7 years ago #

    Thank you. I just messaged my host. :X

  5. khandor
    Posted 7 years ago #

    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?


  6. Clayton James
    Posted 7 years ago #

    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.


    I can't recall for sure, but a restart of Apache may be required after the change. Perhaps someone else can verify.

  7. khandor
    Posted 7 years ago #

    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.

  8. Jaqueline
    Posted 7 years ago #

    khandor, how to split the XML file? I have the same problem and I have no idea how to split it!

  9. khandor
    Posted 7 years ago #

    [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


    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 ...


    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. :-)

  10. Jaqueline
    Posted 7 years ago #

    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...

  11. masey
    Posted 7 years ago #

    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?

  12. prabackar
    Posted 7 years ago #

    Try this there is a utility to split the file automatically. It works perfect.


  13. taguchi
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic