Page 1 of 1
error when trying to rebuild thumbnail-images
Posted: Sun Jan 23, 2011 11:31 am
by bernd_d
If i try to rebuild thumbnail images (because i want to change the thumnail-size), i get the following error-message
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16000 bytes) in .../serendipity/include/functions_images.inc.php on line 1307
I know, my hoster (all-inkl) gives me about 65mb of php-memory and this seems to be not enough...but what can i do now? All thumbnails are away now because they are deleted before rebuild

Re: error when trying to rebuild thumbnail-images
Posted: Sun Jan 23, 2011 11:59 am
by Timbalu
Hi
try to set a php.ini file into root of serendipty
Code: Select all
[PHP]
;;;;;;;;;;;;;;;;;;;
; 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 = 12M ; Maximum amount of memory a script may consume (8MB)
; Maximum size of POST data that PHP will accept.
post_max_size = 10M
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M
and play around with the limits.
Ian
Re: error when trying to rebuild thumbnail-images
Posted: Sun Jan 23, 2011 12:34 pm
by bernd_d
Doesn't work
Really strange, my old wordpress-installation on same server shows
Memory limit : 256 MByte
Seems, all-inkl make differences for different blog-engines.

Re: error when trying to rebuild thumbnail-images
Posted: Sun Jan 23, 2011 12:38 pm
by Timbalu
did you try with memory_limit = 120M or something equal?
Else you have to talk with your provider.
Ian
Re: error when trying to rebuild thumbnail-images
Posted: Sun Jan 23, 2011 12:56 pm
by bernd_d
Doesn't make any difference with different values, error-message always shows 65mb.
Re: error when trying to rebuild thumbnail-images
Posted: Sun Jan 23, 2011 1:00 pm
by Timbalu
You could workaround that problem, rebulding the thumbs on a different system and then just ftp them to uploads manually.
Re: error when trying to rebuild thumbnail-images
Posted: Sun Jan 23, 2011 1:43 pm
by bernd_d
I found another way
- activate imagemagick in s9y-configuration
- add to .htaccess in s9y-main-directory
2nd point is needed for shared hosting, because exec() is disabled for php.
Seems to work now
