import-mt - Fatal error: Allowed memory size (4 posts)

  1. Iki
    Posted 11 years ago #

    First, my apologies if I'm posting this wrong, it's my first time. ;)
    I'm trying to import a blog to WP and here's the error I get:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 131072 bytes) in /path-to/wordpress/wp-admin/import-mt.php on line 66
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 21 bytes) in Unknown on line 0
    The import file is huge - 2.90mb - because the site is huge and stuffed with idiotic pictures. :) Here is the site I'm trying to import. I already imported one of my sub-blogs into my WP installation and it went fine, but it only had 5 entries and like 30 comments.
    Any ideas on what to do with this? I'd be happy to divide the thing up into smaller chunks if that would help any.

  2. Iki
    Posted 11 years ago #

    Had to chop it up a bit further because anything over 1mg for the import file made it crap out again. This is actually a good thing though - as most of the 1500 entries are stupid, I think I'll just take out a "best of" segment and then trash the rest.
    Thanks much for the assistance, I appreciate it.

  3. carthik
    Posted 11 years ago #

    < 800 kb per import file seems to work fine (I tried this on two different servers in two different places) , in case someone stumbles across this post in the future.

  4. paul
    Posted 11 years ago #

    I had the same problem in FreeBSD though not in OS X. What I did was adjust the memory size in php.ini. What's odd (to me, anyway) is that the values are the same but FreeBSD would balk at the import of a 3.3 Mb file.
    I also had to tweak the max_execution_time to 90 seconds to get around a timeout. Here's the section to look for in your php.ini.

    ; Resource Limits ;
    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

    Other than that, it all went swimmingly: almost 2000 entries slurped in no time flat, it seemed.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.