WordPress.org

Forums

How to import big XWR/ WordPress Export RSS (17 posts)

  1. ingsiang
    Member
    Posted 7 years ago #

    I have a big (14MB) wordpress export/import file to be imported to my current blog, but the wordpress import function only allows 2MB maximum(for the import file), can I change it? If yes, how? Else, how to import big import file?

  2. drmike
    Member
    Posted 7 years ago #

    Last time I checked, that 2meg bit was just a number hardcoded within the files and had no baring on the actual file size.

    I'd just modify php.ini and allow a large upload.

    Be sure to delete your spam first before exporting out the *.xml file. That maybe while your file is so large.

  3. ladynada
    Member
    Posted 7 years ago #

    I was trying to keep two wp blogs as mirrors but just found out that the wp import on the two free blogs is importing DUPLICATE COMMENTS. there appears to be a ticket on it, but I cannot change anything on the free blog sites

    http://trac.wordpress.org/attachment/ticket/4282/4282.diff

    does anyone have a program or code to delete all comments from an export file, BEFORE I import it?

    please help, desparate for a mirroring solution for WP to free blog solution... I have searched for weeks now, and there is nothing I can find out there, not even code that I can modify.

    what we need is a, export by date option, or export by last X number of days, and an export comments yes or no until the other bug is fixed...

    need this so bad

    \o/ HELP!

  4. ccoupe
    Member
    Posted 7 years ago #

    You could modify the importer script to skip all comments.

    Or use an RSS importer (it won't do comments)

    If they are identical mirrors, just dump the db and import that on your mirrors on a regular basis.

  5. ladynada
    Member
    Posted 7 years ago #

    Thank you for replying. No I can not do those things because the mirrors are free blogs on sites where I have no access to change a script or upload a db.
    I am looking at modifying the export program, but I am not familiar with mysql coding. yet.
    nada

  6. sciurus
    Member
    Posted 7 years ago #

    So, anybody tried drmike's suggestion? Does it work? Doesn't appear to be working for me.

  7. Trent Adams
    Member
    Posted 7 years ago #

    Editing your php.ini file to allow a larger maximum_file_upload or max_file_upload (can't remember exactly) will just tell your server to allow a larger file upload. It does work for sure.

    I was even thinking that if someone could hack the export to allow "date selection" for export would also allow users to limit the size of the export file.

    Becomes a bigger issue (and file size) each and every day that we blog ;)

    Trent

  8. meifong16
    Member
    Posted 7 years ago #

    the easiet way is to contact your host and ask them to increase the limit. that was what i did and it worked. the only trouble i'm having now is that the import function is not importing all my posts!!

  9. ruhi
    Member
    Posted 7 years ago #

    I'm new here- so, I can't really understand by what you guys mean when you say that we can "edit the php.ini" file. How do we do that? Thanks a lot for your help.

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    You can rather easily split an export file into multiple files and then import them all individually. Open the export file in a text editor that can handle large files (TextPad works well). How to split the file should be obvious, but if it's not, you just copy and paste the individual item sections into new files, keeping the surrounding rss stuff.

  11. ruhi
    Member
    Posted 7 years ago #

    great! Thanks :) It works.

  12. monnibo
    Member
    Posted 7 years ago #

    Where do I find the php.ini file?

  13. Mizpah
    Member
    Posted 6 years ago #

    I hope I can load an export file size larger than 2-3mb as the Mizpah Magazine is approaching that now!

  14. bested
    Member
    Posted 6 years ago #

    thank god for you otto :)

  15. Dalerone
    Member
    Posted 6 years ago #

    I have tried to split my export file into multiple files, the first file runs fine then the second one just gives me the blank page, which is what I got when trying to import my full file. The second file is the same size as the first and is wrapped by the channel data and then /channel /rss at the end. Even if I make the second file only 1 item I still can only use the import once before it seems to not work. Any thoughts?

  16. Mimikri
    Member
    Posted 6 years ago #

    Hm..."channel" sounds good. But is there a rss and /rss in each of them. I think these are very important too.

  17. Dalerone
    Member
    Posted 6 years ago #

    Yeah I have everything surrounding it ok, as the first one goes through fine. I get a php timeout on trying to import the whole thing so I broke it up. I can import part 2 and its fine, or part 1 then its fine, but after the first one it will never import again no matter what part I try. I have created multiple databases to make sure each one of the sections import seperately but trying to import them to one database just doesnt work, the second one times out.

Topic Closed

This topic has been closed to new replies.

About this Topic