error when trying to rebuild thumbnail-images

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

error when trying to rebuild thumbnail-images

Post 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 :|
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: error when trying to rebuild thumbnail-images

Post 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
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: error when trying to rebuild thumbnail-images

Post 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. :shock:
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: error when trying to rebuild thumbnail-images

Post by Timbalu »

did you try with memory_limit = 120M or something equal?
Else you have to talk with your provider.

Ian
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: error when trying to rebuild thumbnail-images

Post by bernd_d »

Doesn't make any difference with different values, error-message always shows 65mb.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: error when trying to rebuild thumbnail-images

Post by Timbalu »

You could workaround that problem, rebulding the thumbs on a different system and then just ftp them to uploads manually.
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: error when trying to rebuild thumbnail-images

Post by bernd_d »

I found another way :)
  • activate imagemagick in s9y-configuration
  • add

    Code: Select all

    AddHandler php-fastcgi .php .php4
    to .htaccess in s9y-main-directory
2nd point is needed for shared hosting, because exec() is disabled for php.

Seems to work now 8)
Post Reply