I am using nextgen gallery plugin for wordpress. On uploading images I had the same Problem as drescribed below.
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6233929 bytes) in …
The exception happens when the thumbnails are created. Creating the thumbnails seems to be a memory exhausting hob. I searched the web and found a few solutions that looked promising like this one
remove the comments from
//@ini_set(‚memory_limit‘, ‚128M‘ from the file „gd.thumbnail.inc.php“
but that did not help, because most hosters do not allow you to increase you memory_limit. I found lots of comments on the web that reported the malfunction of the above bugfix (workaround).
Alex Rabe the developer of nextgen comments on the problem:
The reason is the increased memory needs for WordPress itself, a developer noticed that they raised the requirement up to 256MB !
(http://alexrabe.de/2010/07/05/wordpress-3-0-memory-requirements-256-mb/)
The only solution that worked for me was to downgrade the php version i am using on my webspace. All the versions above 5.x did produce the „memory size exhausted“ exception.
I downgraded to version 4.4.x and everything was fine again. I tested the procedure with an almost 200 images .zip file. Everything worked fine!
I did not discover any problems despite the message „some features of nextgen require php 5.2.x“ netgen displays on the plugin dashboard.
Maybe someone can comment on the limitations with php version 4.4.x in nextgen gallery.
geoff
Jul 12, 2010 -
i’m very interested in a more robust solution to this answer. i’m on mediatemple, and have 100mb limit. nextgen is the only plugin giving me problems right now.
admin
Jul 13, 2010 -
I could not find a more robust solution yet. I am also still having problems with a bulk upload of very big images (5 mb each). The thumbnail generation fails with an out of memory exception. Currently i resize the images to 1024×768 prior to upload (batch resize with irfan-view). Then the thumbnail creation is no problem, even if the bulk upload contains more than 100 images.
But still: This works only with a PHP version lower than 5.x
For a real robust solution we will have to wait for alex rabe or the worpress core developers. 100mb is a lot. For a blogging software this must be sufficient.
Tanx
Apr 27, 2020 -
It’s great that you are getting thoughts from this paragraph as well as from our dialogue made at
this time.