WP Showroom and PHP memory limit

I found a nice new gallery plugin for Wordpress: WP Showroom. It looks really nice and is easy configurable and customizable.

But after installation, I had an error message whenever I tried to access any album settings:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in [...]/wp-content/plugins/WPshowroom/inc.thumb.php on line 1370

I commented out parts of the inc.thumb.php, but then the error message “moved” to another file.

My Wordpress installation consumes pretty much memory, so I’ve set 64M as PHP memory limit in my Apache web server config for this site. I set it even to 512M for testing, but the error message remained.

At the end, I figured out a line in WP Showroom’s request.ajax.php file:

@ini_set(‘memory_limit’, ‘32M’);

This line is at the beginning. It overwrites the PHP memory limit set in the Apache config and lowers it to – in my case, insufficient – 32M. I think, the line is in there to make more memory available, but if the setting is already above 32M, it has the opposite effect. I just commented out that one line, and now, it works fine.

I’ll upload pictures for my albums soon, so all pictures that have been there before (and some new) will be available.

ThemenThemen (1)

2 Responses to “WP Showroom and PHP memory limit”


  1. 1Ryan

    In regards to WP showroom have you figured out how to adjust the image size? I can’t find any reference on how to do that.

  2. 2Dennis

    Yes, you can set any image size under “Settings” in the admin panel. The “full size” slideshow image is a “thumbnail” aswell. You have to enter a new thumnail size (I use 940×940 without square crop, so the long side will always be 940px), regenerate all thumbnails and then change the path to the images in the template file (…/940×940_nc/ in my example).

Leave a Reply