coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: deejaymoni on May 20, 2006, 01:37:47 PM

Title: Download as Zip file - Problem
Post by: deejaymoni on May 20, 2006, 01:37:47 PM
Hello everybody,

I was tryin to fix this problem by myself and was watching here around the board to find a solution but I didn't found nothing.

I've got a little problem with "Download as Zip file".

Before I start to descripe the problem here are all mods and plugins I have installed:
- Upload History
- CPG MiniCMS v1.5
- Add thumbnails to Lightbox v1.2.3
- Onlinestats (Who is online) v1.2
- Multiline comments v1.0
- Bridge phpBB

My problem is that I can't download images as zip which are bigger than a ~MB if I'm trying it shows me that this page does not exist.

You guys can try to download some here: http://www.jessica-alba.de/gallery/index.php

Try to put 7 images into the lightbox and than try to download as Zip file - you don't need an account.

I think maybe it depends on my server but I'm not sure.



Title: Re: Download as Zip file - Problem
Post by: Joachim Müller on May 20, 2006, 01:47:44 PM
yes, this is a server issue: creating the zip file eats server resources, so you're running into limitations on your server set up by your webserver admin. Basically, the same server-sided restrictions that apply to resizing large files  when uploading apply to zipping as well. Review the sticky thread "Trouble-shooting the upload process (http://forum.coppermine-gallery.net/index.php?topic=24088.0)" on the upload sub-board. However, if the server isn't yours to administer, there's little you could do about this.
Title: Re: Download as Zip file - Problem
Post by: deejaymoni on May 20, 2006, 03:23:51 PM
Hi GauGau
I have a dedicated server so I can do changes in php.ini

I have changed the following limits:

memory_limit = 20MB
max_execution_time = 60
max_input_time = 60
post_max_size = 20MB
upload_max_filesize = 20MB

but nothing happens I still got a limit of 5 MB or something. :(
Title: Re: Download as Zip file - Problem
Post by: Joachim Müller on May 20, 2006, 04:12:13 PM
not sure, you'll have to experiment. Blind guess is memory limit.
Title: Re: Download as Zip file - Problem
Post by: deejaymoni on May 20, 2006, 06:05:39 PM
That's very strange I don't know where this limit is set!!! I have tried different ways.

I know that php is using a integer for bytes like 1M = a Megabyte or 1048576 Bytes - memory_limit would be than 20M but I don't know where the 5 MB limit are set. >:(

May be I have to restart the server.  :-\

Title: Re: Download as Zip file - Problem
Post by: Tranz on May 20, 2006, 06:19:35 PM
If you are referring to a 5MB limit on file size, there's not a one-to-one ratio between file size and memory usage. The processing of a file of x MB can take up much more memory than x MB.
Title: Re: Download as Zip file - Problem
Post by: deejaymoni on May 20, 2006, 06:54:06 PM
Oh oh that's too high for me could you give me an example?

Default setting in php.ini for:

- post_max_size = 8M
- upload_max_filesize = 2M
- memory_limit = 32M

hmm where is here than the one-to-one ratio??? or am I wrong???
Title: Re: Download as Zip file - Problem
Post by: Joachim Müller on May 21, 2006, 11:04:52 AM
yes, the server needs to be restarted to make the new settings in php.ini become valid
Title: Re: Download as Zip file - Problem
Post by: deejaymoni on May 31, 2006, 05:08:01 PM
Still doesn't work oh damn I don't know what I'm doing wrong lol right now I hate my server >:( that can't be I'm fighting with it since some weeks.

Strange thing.

@TranzNDance: Sorry but I don't understand what you mean with one-to-one ratio could you please expain it?