4images Help / Hilfe > Error Messages / Fehlermeldungen

Fatal error: Allowed memory size of NN bytes exhausted

(1/2) > >>

V@no:
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.

rinaldos:
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: ---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");
--- End code ---

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

Ingo

V@no:
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) ---php_value upload_max_filesize 128M
php_value post_max_size 128M
--- End code ---


reference:
http://php.net/manual/configuration.changes.modes.php
http://php.net/manual/configuration.changes.php
http://php.net/manual/ini.list.php

rinaldos:
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>

Vizear:
You my friend are a god send! lol. Mines working with that code...   :mrgreen:


--- Quote from: 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: ---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");
--- End code ---

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

Ingo

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version