Title: About how much memory?
Last modified: August 30, 2016

---

# About how much memory?

 *  Resolved [dsbw](https://wordpress.org/support/users/dsbw/)
 * (@dsbw)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/)
 * 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/](https://wordpress.org/plugins/blogger-importer/)

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

 *  Plugin Contributor [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515615)
 * > (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](https://wordpress.org/support/users/dsbw/)
 * (@dsbw)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515616)
 * 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)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515619)
 * You can turn on WP_DEBUG to see if it has any errors. That’s about it, really.
 *  Thread Starter [dsbw](https://wordpress.org/support/users/dsbw/)
 * (@dsbw)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515624)
 * 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](https://wordpress.org/support/users/dsbw/)
 * (@dsbw)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515871)
 * 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](https://wordpress.org/support/users/dsbw/)
 * (@dsbw)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515872)
 * 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](https://wordpress.org/support/users/dsbw/)
 * (@dsbw)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515873)
 * 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.

 * ![](https://ps.w.org/blogger-importer/assets/icon.svg?rev=2828582)
 * [Blogger Importer](https://wordpress.org/plugins/blogger-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blogger-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blogger-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/blogger-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blogger-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blogger-importer/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [dsbw](https://wordpress.org/support/users/dsbw/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/about-how-much-memory/#post-6515873)
 * Status: resolved