Jump to content

Recommended Posts

Posted (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 by rick02840
Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...