PDA

View Full Version : Wordpress: XML File Too Large to Import



Kymburlee
09-15-2008, 08:45 PM
Apologies if this has been addressed, but I'm one of those dreaded new users who hasn't a clue what they're doing yet.

I'm having issues importing my blog to my new domain. It wouldn't import directly from blogger so I tried a work around suggested in another forum. i.e. to start a free wordpress site, import to that, then export it into an XML file to import to my new domain. Everything went smoothly except for the importing to my new domain.

I get a message of "Are you sure you want to do that?" and "Please try again." The file is 9.86 MB so I'm thinking that might be the issue, but I'm not certain.

Any ideas? I don't have the technical knowledge to file split, though I have been researching the topic in hopes of figuring it out on my own. Any advice would be hugely appreciated.

Cheers,
Kimberly

owencutajar
09-16-2008, 03:18 AM
I don't remember exact filesizes, but when I imported around 1500 posts into my blog (http://www.u-g-h.com), I had to mess around with splitting the file into different chunks as it was too big for WP to deal with in one go.

It wasn't easy as the file is XML so you can't just break it up. Took me a couple of hours if I remember correctly, but wasn't too hard.

Main advice is to make sure the XML is well-formed before importing, otherwise the import won't work. You do this by opening it in Internet Explorer. If the is an XML error, it will tell you straight away.

Sorry I can't be any more specific than that.

Owen

mhJr_
09-16-2008, 02:39 PM
Apologies if this has been addressed, but I'm one of those dreaded new users who hasn't a clue what they're doing yet.

I'm having issues importing my blog to my new domain. It wouldn't import directly from blogger so I tried a work around suggested in another forum. i.e. to start a free wordpress site, import to that, then export it into an XML file to import to my new domain. Everything went smoothly except for the importing to my new domain.

I get a message of "Are you sure you want to do that?" and "Please try again." The file is 9.86 MB so I'm thinking that might be the issue, but I'm not certain.

Any ideas? I don't have the technical knowledge to file split, though I have been researching the topic in hopes of figuring it out on my own. Any advice would be hugely appreciated.

Cheers,
Kimberly http://www.avxf.com/img18.jpg

The maximum size is controlled by two PHP settings: upload_max_filesize, and post_max_size. These are PHP.INI settings, and you may or may not be able to modify them yourself. It depends on your host. So you have to ask them what the correct way to change their value is for their setup. You may need to edit the .htaccess, you may need to add a few ini_set lines to your wp-config.php file, or you may need to edit a PHP.INI file. Can't say for sure.

Might need to request a support ticket.

Felgall will probably chime in and let you know exactly what is going on. =]

nuttycoder
09-16-2008, 05:28 PM
you can override upload file sizes using an .htaccess file using:



php_value upload_max_filesize 20M


in this case the max file size would be 20MB

I've wrote a tutorial on this over at http://www.webguideuk.com/ht-access/override-file-upload-sizes-an-htaccess-file

charlesgan
09-18-2008, 12:36 AM
since you having trouble with the file size... you can send your XML script to bluehost support and asked them to import for you.