rick02840 Posted December 10, 2007 Posted December 10, 2007 (edited) I have a Standard Reseller account with about 15 small sites on it. Almost all of the sites are Drupal sites - fairly memory intensive (32MB is recommended) - thought again they are very small, low traffic sites. On one of them, I am getting this error when uploading images: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10368 bytes) in /home/ethnicne/public_html/includes/image.inc on line 308 The file I was uploading was a JPG image, only 607KB - not that big. Searching Drupal forums says this is due to memory limits on the server. But I see memory limit is 32MB which should be enough. Questions: 1. Any ideas? 2. Any way to get more memory (even at additional cost)? Thanks, Rick Update: I think the issue is not with file size but with pixel size - still looking into.... Edited December 10, 2007 by rick02840 Quote
TCH-Bruce Posted December 10, 2007 Posted December 10, 2007 The size limit of 2MB is set on the servers but you can upload larger files modifying your .htaccess file and inlcude the following for 10MB >php_value max_execution_time 1200 php_value memory_limit 30M php_value post_max_size 10M php_value upload_max_filesize 10M Quote
rick02840 Posted December 11, 2007 Author Posted December 11, 2007 Thanks Bruce, That's good to know that I can alter max file size without having to get into php.ini. I have now narrowed it down to be due to the pixel size, not file size. I had set max pixel size (in Drupal) as 1600, so I was not surprised to get an error message, but would have expected some kind of friendly Drupal error message, such as "you've exceeded the maximum allowable dimensions of 1600 x 1600" not the message I got, which looked more like a PHP/server message. Trying to figure out why (in Drupal) that happened. Anyhow, thanks again. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.