Title: Memory bug
Last modified: August 30, 2016

---

# Memory bug

 *  [lezzidan](https://wordpress.org/support/users/lezzidan/)
 * (@lezzidan)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/memory-bug/)
 * Hi,
    my installation was somehow generating overload in the server. Looking at
   the apache log I found several of these lines: Allowed memory size of 134217728
   bytes exhausted (tried to allocate 131072 bytes) in /…/wp-content/plugins/responsive-
   flickr-gallery/index.php on line 308
 * Increasing the php memory limit does not work, it will just reach the limit of
   the available memory.
 * [https://wordpress.org/plugins/responsive-flickr-gallery/](https://wordpress.org/plugins/responsive-flickr-gallery/)

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

 *  Plugin Author [Lars Schenk](https://wordpress.org/support/users/larsschenk/)
 * (@larsschenk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/memory-bug/#post-6606895)
 * “Allowed memory size exhausted” occurs when you try to use/load a very large 
   gallery (maybe the whole photo stream).
 * Two possible solutions:
 * a)
    Increase memory limits: [http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP](http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)
 * b)
    Avoid using “Photostream” when you have many photos. Don’t use [RFG_gallery]
   or [RFG_gallery id=’0′]. Define and use a gallery that contains fewer photos:
   Add a new gallery. Use “Gallery Source” with “Photoset” and select a set that
   has a reasonable number of photos for the memory available. Use the newly created
   gallery to find out it that fits into memory: [RFG_gallery id=’1′] if it was 
   your first created gallery.
 * Good luck.
 *  Thread Starter [lezzidan](https://wordpress.org/support/users/lezzidan/)
 * (@lezzidan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/memory-bug/#post-6606904)
 * Hi,
    I had already set the memory limit to an higher value, what it does is reaching
   anyway this limit and then it crashes. Of course I use Photosets and I create
   galleries connected to one of those. I think it’s not related to the size of 
   the gallery, I have posts with 80 photos galleries opening fine and other with
   55 photos causing the crash.
 * The strange thing is that if I create a new gallery pointing to the same Flickr
   photo album then it works.
 *  Thread Starter [lezzidan](https://wordpress.org/support/users/lezzidan/)
 * (@lezzidan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/memory-bug/#post-6606905)
 * Another error (not critical): Warning: Invalid argument supplied for foreach()
   in wp-content/plugins/responsive-flickr-gallery/rfg_add_galleries.php on line
   53

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

The topic ‘Memory bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/responsive-flickr-gallery_cecece.
   svg)
 * [Responsive Flickr Gallery](https://wordpress.org/plugins/responsive-flickr-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-flickr-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-flickr-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-flickr-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-flickr-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-flickr-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [lezzidan](https://wordpress.org/support/users/lezzidan/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/memory-bug/#post-6606905)
 * Status: not resolved