Hello,

I installed brand new Drupal 5.5 few days ago, I installed Image module to upload screenshots of my application.

I can only upload small images, when I try to upload images larger than 640x480 I see only a blank page and must click "black" in my browser to back to Drupal.

I was searching for similiar issues on Drupal website.
I found that people fix it by changing configuration of image module, but it doesn't help here.
I also tried development version of Image module, but it also didn't help.
I can't change PHP configuration, website is installed on sourceforge.net.

Uploading image is essential for my website, so I need to make it work somehow.
Is there any other Module for images in Drupal, without this problem?
Is there any other combination of Drupal/Image module versions which works correctly?

Comments

darkelf’s picture

I was able to see the server output:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1600 bytes) in /tmp/persistent/drupal-5.5/includes/image.inc on line 238

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 32 bytes) in /tmp/persistent/drupal-5.5/includes/database.inc on line 79

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 42 bytes) in /tmp/persistent/drupal-5.5/includes/session.inc on line 169

(/tmp/persisent/drupal-5.5 is root of my drupal installation on sourceforge.net)

niuserre’s picture

Increase your memory allocation. Create a php.ini file in your drupal directory with the content:

memory_limit = 32M

That should do it.

darkelf’s picture

I think this is not allowed on sourceforge:

Our PHP configuration permits applications to use up to 8MB of memory. We strongly encourage you to optimize your application to run within this resource footprint. If your application requires more memory (it will return an out of memory error, stating that additional memory could not be allocated), and you have already optimized the memory usage of your application, contact SourceForge.net staff via Support Request. We may grant you permission to double the memory permitted for use by your application (to 16MB).

http://sourceforge.net/docman/display_doc.php?docid=4297&group_id=1

Is there any other way to upload Images to Drupal?
I tried importing them from server with Image Import, but it leads to the same problem.

niuserre’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (won't fix)

Only by uploading smaller images. Most gallery scripts (Gallery2, Coppermine etc.) need more than 8MB. If you ask them to increase it to 16MB you will at least be able to upload images bigger than your current limit of 640x480.