Active
Project:
Avatar gallery
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2007 at 20:31 UTC
Updated:
16 Oct 2009 at 00:23 UTC
After installing the module, if i travel to any page with Avatar Gallery turned on, the whole site crashes and gives me a blank page. If I go to View-> Page source, there is nothing.
Comments
Comment #1
RockRat commentedI had this happen to my site too with the module installed.
Comment #2
torgospizzaIf you turn on error reporting you might see this message:
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 650 bytes) in /sites/all/modules/avatar_gallery/avatar_gallery.module on line 348
This is what happens for me. I have php.ini setup to allow 48 megs of memory, there's no reason why the ImageCreateTrueColor use at line 348 should be using all of that memory. Not sure how to fix this, though, just thought I'd add my issue here, since it appears to be the same.
(You also get this error when uploading a new avatar with avatar gallery module turned on.
Comment #3
hokuspokus commentedThis is often a memory issue; A.K.A. the White Screen of Death (WSOD). 48 meg may seem like a lot, but if you have image related modules enabled, it can chew through that amount in nothing flat. Increase your memory to over 100 meg and see what happens, and if it fixes it, you can try backing down a bit to see what is stable. One module (i think imagecache) recommends at least 96 meg, so 100 is not out of the question.
Comment #4
ozmex commentedi have mine set to 150Mb, trying to upload a 5k file, and still getting this error. could it be some other problem?
Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 57070001 bytes) in /path/to/modules/avatar_gallery/avatar_gallery.module on line 350
Comment #5
torgospizzaAdd this code to your index.php file (in Drupal root) and see what the errors are that it's throwing..
Comment #6
hokuspokus commentedYes with this code you will get the errors printed out onscreen instead of just a white screen. Much more useful in diagnosing problems.
Comment #7
agileware commentedMarked #249226: Fatal error: Allowed memory size of 33554432 bytes exhausted ... avatar_gallery/avatar_gallery.module on line 384 as duplicate.
Comment #8
agileware commentedThis error is now on line 439 in the most recent version.
The problem is caused by the way this module works.
It creates one huge image with all the avatars joined together (WHY???).
The imagecreatetruecolor image is already known to be memory hungry but when you are trying to join together a couple of thousand avatars into one huge image you need enormous amounts of memory.
It just isn't a sensible thing to do unless you have very very few users.
This is why your site might have been working and then suddenly stop. Because each time a user joins it uses more memory than last time until your server can't cope.
Aside from this, I really can't see a use for this module. What is the point of having one big static image?
You would be better off with a view of all the avatars, that link back to the users profile or something. That might at least be useful.
So my recommendation is... Just don't use this module if you are running into this problem. Try Views.