4images Forum & Community

4images Help / Hilfe => Error Messages / Fehlermeldungen => Topic started by: V@no on February 15, 2009, 11:02:35 PM

Title: Fatal error: Allowed memory size of NN bytes exhausted
Post by: V@no on February 15, 2009, 11:02:35 PM
This error indicates that there is not enough memory allowed per script.
Usually this occur when processing images (resizing, creating thumbnails)

Your only solutions are:

1) create thumbnails manually and upload them with the image (or add them later) (same applied to image resizing)
2) try use ImageMagic or NetPBM instead of GD (for information about executable paths contact your host's administrator)
3) ask your server's administrator increase memory limit (good luck on this one)
4) find another host.
Title: Re: Fatal error: Allowed memory size of NN bytes exhausted
Post by: rinaldos on March 08, 2009, 03:52:18 PM
This little Addon worked for me. Maybe it can help you.

I put these lines in global.php and /includes/image_utils.php direct after <?php

Code: [Select]
ini_set("memory_limit", "150M");
ini_set("max_execution_time", "10000");
ini_set("default_socket_timeout", "100");
ini_set("expect.timeout", "360");
ini_set("upload_max_filesize", "134217728");
ini_set("post_max_size", "134217728");

Please try, if this helps you......

Ingo
Title: Re: Fatal error: Allowed memory size of NN bytes exhausted
Post by: V@no on March 08, 2009, 06:47:52 PM
Thank you for this info. I'm sure many people will benefit from this.

Though, the last two lines wont work, unless you have PHP v4.2.3. or older.
these two values can only be set in .htaccess with
Code: (.htaccess) [Select]
php_value upload_max_filesize 128M
php_value post_max_size 128M


reference:
http://php.net/manual/configuration.changes.modes.php
http://php.net/manual/configuration.changes.php
http://php.net/manual/ini.list.php
Title: Re: Fatal error: Allowed memory size of NN bytes exhausted
Post by: rinaldos on July 02, 2009, 10:30:44 AM
yes, i have also in .htaccess the following lines .....
with this integration, i have no Problems to upload files with max 1GB


<FilesMatch "\.(php|html?)$">
php_value upload_max_filesize 1024M
php_value post_max_size 1024M
</FilesMatch>

Title: Re: Fatal error: Allowed memory size of NN bytes exhausted
Post by: Vizear on June 08, 2013, 09:12:46 PM
You my friend are a god send! lol. Mines working with that code...   :mrgreen:

This little Addon worked for me. Maybe it can help you.

I put these lines in global.php and /includes/image_utils.php direct after <?php

Code: [Select]
ini_set("memory_limit", "150M");
ini_set("max_execution_time", "10000");
ini_set("default_socket_timeout", "100");
ini_set("expect.timeout", "360");
ini_set("upload_max_filesize", "134217728");
ini_set("post_max_size", "134217728");

Please try, if this helps you......

Ingo
Title: Re: Fatal error: Allowed memory size of NN bytes exhausted
Post by: Norbi on June 13, 2014, 04:22:40 PM
Hallo zusammen,

wenn ich nach dem Upload größeren Dateien auf „neue Bilder checken“ klicke, die entsprechenden Einstellungen vornehme und auf hinzufügen gehe, bekomme ich folgende Fehlermeldung...

Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 23040 bytes) in /kunden/430546_26721/webseiten/4images/includes/image_utils.php on line 80

Die hier im Forum gefundenen Hinweise sind alle älteren Datums oder läuft das auch mit der Vers. 1.7.11?

Gruß Norbi

Title: Re: Fatal error: Allowed memory size of NN bytes exhausted
Post by: nobby on June 13, 2014, 08:50:38 PM
Hallo,

Allowed Memory Size ist das Problem, das muss dein Webhoster ändern. Und wenn Du root zugriff hast musste das in der PHP.ini geändert werden.

nobby