Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Large image don't resize

More
15 years 4 months ago #81269 by pac_indahood
I've tryed to upload a image with big resolutin (1600x1200) and dont wanted and gaved me this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3200 bytes) in /home/"site"/public_html/components/com_kunena/lib/kunena.image.class.php on line 414

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #81343 by pac_indahood
Please, help

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago - 15 years 4 months ago #81347 by Hurr1c4n3
Error Message:

Fatal error: Allowed memory size of XXXXXXX bytes exhausted at (null):0 (tried to allocate XXXX bytes) in /var/www/html/XXXXXXXXXXX.php

Meaning: You have exceeded the memory allotment given to you in php.ini

Possible causes:

This error occurs when using GD and attempting to upload a high resoltuion image. It's not the size of the file that matters here; it's the number of pixels that determine memory use in GD.

Solutions:

Alternative 1 (ideal):Increase the memory limit allocation in php.ini. You must be the server's administrator to do this. Also, .htaccess files cannot change this configuration setting, and it cannot be changed using ini_set(). First, you locate the following block in php.ini:

Code:
;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)


Now you increase the memory limit to fir your needs. 32 MB should handle most requirements. To calculate the amount of memory an image uses, you simply multiply the pixel width and height, and then you multiply the result by the number of base colors (RGB - 3, CMYK - 4). Finally, you divide by 1048576 to get the memory usage in MB.

Here are some common image resolutions and their memory use in GD (assuming RGB):

800 x 600 - 1.37 MB
1024 x 768 - 2.25 MB
1200 x 1600 - 5.49 MB

Remember when using the above figures that the amount of memory being used by the rest of joomla/your site must be taken into account, too.

If you are unable to change php.ini settings yourself, you can always ask your server administrator to change this for you. However, many administrators will be reluctant to do so, as this setting will affect everyone on a shared server. A higher memory limit requires reducing the number of people who can be hosted on the same server in order to maintain server stability. This reduces profitability, etc.

If you cannot change php.ini, you should read alternative 2.

Alternative 2 (sensible):

Resize your images before uploading them. This saves upload bandwidth and time for you.
Last edit: 15 years 4 months ago by Hurr1c4n3.
The following user(s) said Thank You: sozzled

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #81354 by pac_indahood
Thank you for support!

Please Log in or Create an account to join the conversation.

Time to create page: 0.225 seconds