Hello,
I have a problem with uploading an image of 3 mb of larger in combination with a scale down. When i upload the upload process is strating correctly. After the upload nothing happens. The button Upload Selected File stays gray. The image is not shown. Then i close ckfinder and open again, the file is shown but it is not scaled down.
I changes the max_execution_time in PHP to 30000.
I also changed the $TWEAKFACTOR = 10000; in Misc.php
Any idea?
Kind regards,
Jaap
I have a problem with uploading an image of 3 mb of larger in combination with a scale down. When i upload the upload process is strating correctly. After the upload nothing happens. The button Upload Selected File stays gray. The image is not shown. Then i close ckfinder and open again, the file is shown but it is not scaled down.
I changes the max_execution_time in PHP to 30000.
I also changed the $TWEAKFACTOR = 10000; in Misc.php
Any idea?
Kind regards,
Jaap
Re: Problem uploading large image 3-5 MB and scale down
Check apache error log file to see if there is any information about fatal error.
If you like, you can send me also link to your site so that I could take a look at it (If you prefer to debug it alone, you can try using Fiddler to inspect HTTP response after file is uploaded, remember to turn on error_reporting and set display_errors to "on").
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problem uploading large image 3-5 MB and scale down
I get the next error:
[07-Apr-2009 15:33:43] PHP Fatal error: Out of memory (allocated 40370176) (tried to allocate 7716 bytes) in /opt/guide/www.domain.nl/HTML/ckfinder/core/connector/php/php5/Utils/Misc.php on line 78
phpinfo.php says: memory_limit 32M
Do you have any ideas?
Re: Problem uploading large image 3-5 MB and scale down
Make sure that ini_set is not disabled (is not listed in disable_functions).
In the setMemoryForImage() function you could call directly
to see whether the problem is in invalid calculation of required memory size or is it a problem with telling PHP to use more memory.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problem uploading large image 3-5 MB and scale down
I did as you suggested. ini_set is not disabled according tot php_info(). I get the following message:
[20-Apr-2009 09:14:20] PHP Fatal error: Out of memory (allocated 40370176) (tried to allocate 1929 bytes) in /opt/guide/www.domain.nl/HTML/ckfinder/core/connector/php/php5/Utils/Misc.php on line 78
Any idea if this is a problem of invalid calculation or a problem telling PHP to use more memory
Kind regards,
Jaap
Re: Problem uploading large image 3-5 MB and scale down
When i upload an image with with 2816 width, 1876 height and 171 KB or larger the resize doesn't work.
I seems like the MB isn't the problem but the dimensions of the image is.
Maybe this helps.
Kind regards.
Re: Problem uploading large image 3-5 MB and scale down
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problem uploading large image 3-5 MB and scale down
I replied your PM.
Kind regards,
Jaap