By rays on
Hi all,
Have been up on Drupal for almost 2 months now... great software... thanks to all that make it what it is! One issue I'm trying to work through is an image upload problem... I get a blank (white) screen on node/add/image. The strange part is that I uploaded 60 or so images without a problem before it stopped working. Has anyone else experienced a similar problem? Any thoughts would be appreciated.
Thanks,
Comments
Check your (PHP) memory
Totally blank screens are a symptom of memory max-out.
Image processing is memory intensive.
The larger your site gets, the more likely this is to happen.
... just a guess.
.dan.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
May not be memory...
Hi Dan,
That for the reply. I also noticed that the posts included comments about "the white screen of death" for out of memory situations. I disabled most modules as a quick fix to cut down on memory usage... but same problem with blank screen continued. Any other ideas I can check out?
Thanks!
Ray
sulsh.com
... Not OTTOMH, but I'd
... Not OTTOMH, but I'd still be thinking overload.
Removing modules is all very well, but if they are not being used much, they each have pretty small footprints. The real solution is to increase the mem limit in php.ini , or I believe it may be possible using php_ini_set().
It makes sense that the temp file is being created - the transfer stage is not hard (it's streamed) but the thumbnailing process requires the whole image to be processed.
Although when that failed for me I just ended up with full-sized images as the 'thumbnails'.
Tiny chance it could be the encoding of the pictures causing the image toolkit to fail - the new pics are from exactly the same source as the old ones?
Try on a smaller image.
... then start debugging by hand, logging progress to watchdog or something.
.dan.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Hail to the Drupal Master!
Yes, smaller files did work... so you were right on track with the memory issue. I've asked my web hosting provider to increase memory limit in php.ini as I don't have access to it. Will post here the results. Thanks again.
*** update ***
Didn't wait on hoster... found a helpful post and added the following to my sites/default/settings.php file:
ini_set('memory_limit', '32M');
And it works fine. Dan, thanks again for the help... you're awesome.
Ray
sulsh.com
:)
All good.
I thought ini_set() was possible, but I also suspected it could depend on the permissions your host has given you.
... couldn't quite quote the syntax OTTOMH.
Would you believe I only heard of Drupal a few weeks ago? Already I get the feeling I know more about it than I really wanted to. :-/
Anyway, you're welcome!
.dan.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Mind sharing the thread? I
Mind sharing the thread? I am also looking to do it myself instead of waiting for my host.
Adding ini_set('memory_limit'
Adding
ini_set('memory_limit', '128M');
in sites/default/settings.php
Worked for me too. (Drupal 5.11)
--------------------------
http://zero-design.info
http://modelagnostic.co.uk/
128MB worked for me also
tried 32MB in both php.ini and in settings.php... wouldnt load a dinky 2.1MB picture with those settings
128MB - and it loaded right up
thanks for the help you guys... wish such a basic feature wasnt so hard
Im with Drupal for the page load speeds... I guess I will pay a price for that... but I used Joomla at my previous job and couldnt stand how slow it was
http://forums.packetbrain.com will be launching shortly (we are a Cisco training company)
128mb memory worked
Confirmed, blank screen fixed after increasing the memory limit to 128mb.
Update: /temp images present
The images are making it (uploading) to the /temp directory for images prior to the blank screen display.
Ray
sulsh.com