• 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)
  • I think it is because the PHP limit is set to 2MB and not WP.

    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

    (@doorlight)

    Thank you. I just messaged my host. :X

    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.

    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.

    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.

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

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

    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…

    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?

    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/

    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.