[wp-testers] Import Limit

Burhan Khalid burhan.khalid at gmail.com
Sun Mar 23 10:52:36 GMT 2008


On Sun, Mar 23, 2008 at 1:42 PM, Andrew Ozz <admin at laptoptips.ca> wrote:
>
> Burhan Khalid wrote:
>  > On Sun, Mar 23, 2008 at 1:27 PM, Doug Stewart <zamoose at gmail.com> wrote:
>  >> On Sun, Mar 23, 2008 at 6:12 AM, George Pearce <george at gpearce.co.uk> wrote:
>  >>  > > Is there a way to increase the import file size limit for wordpress xml
>  >>  >  imports?
>  >>  >  I think it's in the PHP memory limit, most hosts limit you to about 2megs, I
>  >>  >  forget the exact amount.
>  >>  >  However, if you stick the following in the .htaccess file, it should up the
>  >>  >  limiter.
>  >>  >
>  >>  >  php_value memory_limit 50M
>  >>  >
>  >>  >  You can change the 50m to whatever you like :) , although if you have a
>  >>  >  shared host, you might want to check it's not against their TOS, but for one
>  >>  >  upload, it should be ok.
>  >>  >
>  >>  >
>  >>
>  >>  I don't think that's the issue at play here.  WP used to enforce an
>  >>  upper limit of 7MB on WXR files.  I'm assuming it still holds true.
>  >
>  > So if I change this limit, will it cause any problems? The limit is 8
>  > MB, my backup is 9.92 MB.
>
>  You can split the xml in chunks between the posts, just paste the header.

After reading the code, I found out that its reading from the
post_max_filesize php settings, so I just increased that and its now
20 MB.


More information about the wp-testers mailing list