• Resolved dsbw

    (@dsbw)


    So, like a lot of folks, I upload my blogger file (about 18M) and then I get a blank page. It does upload; I can see it in the media area. But there’s no indication of anything going on with it. I got no error messages, but I’m assuming that it’s a memory issue. (I have only 32MB allowed to my PHP scripts.)

    I want to ask for a boost in PHP memory but about how much should I ask for? 18MB file, not a lot of graphics, for what that’s worth.

    Thanks!

    https://wordpress.org/plugins/blogger-importer/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    (I have only 32MB allowed to my PHP scripts.)

    If you have an 18MB upload file, you need a lot more than that. Raise the limit to 256MB or more to get it to work.

    Thread Starter dsbw

    (@dsbw)

    Welp, I just set it 512 and no joy. Is there a log somewhere I can confirm that memory is the problem?

    Plugin Contributor Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You can turn on WP_DEBUG to see if it has any errors. That’s about it, really.

    Thread Starter dsbw

    (@dsbw)

    Aha! So, I did turn on WP_DEBUG, and managed to boost the memory to 256MB, at which point I got an out of memory error. So I boosted it to 512MB and got:

    Warning: Invalid argument supplied for foreach() in /home/wp-content/plugins/blogger-importer/blogger-importer.php on line 225

    Anything I can do about this?

    I tested with a smaller blog and it seemed pretty slick, so it’d be nice to use. Maybe I download it locally, do some pruning and try again, but I’d hate to do that and get the same error, since the pruning will be time consuming.

    Thread Starter dsbw

    (@dsbw)

    Well, crap, I pruned the data and got the same error:

    Warning: Invalid argument supplied for foreach() in /home/wp-content/plugins/blogger-importer/blogger-importer.php on line 225

    So, it looks like I’m screwed. =(

    Thread Starter dsbw

    (@dsbw)

    OK, I found this error is not uncommon in WordPress, though I haven’t found it in blogger-import. I managed to suppress the error by adding this code prior to the line causing the problem:

    if (is_array ($authors))

    Right before line 225 where it says:

    foreach ($authors as $author) {…

    So, no error, but also no posts. I’m going to guess it’s because I haven’t set any of the author data. My blog is a single-author blog, which I think may be the source of the problem.

    For those encountering a similar problem, a simple fix MIGHT be to add another author to the blog and re-download and try again, but I’m going to try to copy the code from the foreach block into a new block first.

    Thread Starter dsbw

    (@dsbw)

    Welp, my hack failed and adding a new author to the blog didn’t help.

    Crap.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘About how much memory?’ is closed to new replies.