Hi,

When I try to upload images of a certain size (1M or greater) I get the following error:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path:
/file/ajax/field_gallery_images/und/form--c2tgV-xOIJDqv-ZDzE5Eym5v_BfYFjybzNJK7hDNje
StatusText: n/a
ResponseText:
Fatal error: Out of memory (allocated 81526784) (tried to allocate 18432 bytes) in
/homepages/....[path-to-website]/modules/system/image.gd.inc on line 237
ReadyState: undefined

Now...I created a php.ini file in my site's root directory and changed the post_max_size and upload_max_filesize variables to be 60M. I also changed the settings.php file and ini_set('memory_limit', ...); and I tried changing the memory limit to 256, then 512, then 1024 - and the changes were reflected in the admin/reports/status page so I know that worked. Still, the error persists!

Can anyone help?

Comments

Christopher James Francis Rodgers’s picture

To get 128MB of PHP memory, via the file
[root]/php.ini
see...
Drupal 7 "Fatal error: Allowed memory size of ..."
http://drupal.org/node/76156#comment-4582924

To get an increase beyond 128MB via the [root]/sites/default/settings.php file ...
Drupal 7 memory increase to more than 128M
http://drupal.org/node/76156#comment-4583384


All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *

yevgeny.ananin’s picture

Thanks, I'll check those out.

yevgeny.ananin’s picture

I've changed both my php.ini file and my settings.php file. I increased the memory limit to 512MB, and when I go to reports>status report, the php memory limit is listed as 512MB. However, the problem persists!

The problem happens when I try to add an image to a photo gallery content type, only if the image is larger then 1024x1024 (which is the maximum image resolution that I have configured for that content type). However, I was under the impression that Drupal is supposed to resize images to fit the max size if the user happens to upload an image larger than the max. In fact, this is what used to happen. The problem seems to only have happened after I ran updates last week. Now, instead of resizing larger images, it just gives me the out of memory error.

Is something else on the website using up memory resources? I don't know how to diagnose the problem?

yevgeny.ananin’s picture

Is it possible that 1&1 is limiting my memory, despite what is written on the status>reports page?

yevgeny.ananin’s picture

Ok, so I contacted 1&1 and it turns out that the account that I have ('Business Linux') has a max php memory limit of 90MB - and they do not offer any accounts with a higher max limit. What annoyed me was that after changing my php.ini and settings.php files (as per the recommendations on drupal.org forums), the changes were reflected in my phpinfo() file. But 1&1 assured me that they override whatever changes are made in these files, and that the memory limit is capped despite what it says in the phpinfo() file (or at the admin/reports/status page).

Does anyone know of a shared hosting provider with higher limits, or maybe with no limits at all?

Christopher James Francis Rodgers’s picture

I have now been happy with BlueHost for 4 years.

Use their link on the drupal.org page
http://drupal.org/hosting
and they give all the proceeds to Drupal.org .

I recommend you buy three years at $4.95 / month to avoid the hassle
of renegotiating it down from $7.95 when your first contract expires.

Unlimited website storage, unlimited bandwidth, 50 MySQL Databases.

Using the free BlueHost control panel
automated Drupal installer "SimpleScripts" (not Fantastico)
I can 'one-click' install a test Drupal 6 or 7 site (up to 50 of them),
And the memory is automatically set to 128M (for Drupal 7).

For Drupal 7 (and I think works for D6), to get up to 512M via
ini_set('memory_limit', '512M');
in your [Drupal 7 root]/sites/default/settings.php file.

See "Drupal 7 memory increase to more than 128M"
http://drupal.org/node/76156#comment-4583384


All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *