forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: dlonskey on August 30, 2015, 06:28:54 am

Title: Download complete album als ZIP Fatal error: Maximum execution time
Post by: dlonskey on August 30, 2015, 06:28:54 am
Thanks...I'll give this a try

I've installed the plugin Download complete album als ZIP  http://forum.coppermine-gallery.net/index.php/topic,74257.0.html (http://forum.coppermine-gallery.net/index.php/topic,74257.0.html) but I'm getting this message when I try it:

Deleting old zip files...
Creating file list...
Creating zip file...
Fatal error: Maximum execution time of 30 seconds exceeded in /home/dealon/SBCgallery.dlonskeyphoto.com/include/archive.php on line 651

My albums that I'll be making available to download will be pretty large so maybe this is the issue?
Title: Re: Download complete album als ZIP Fatal error: Maximum execution time
Post by: allvip on August 30, 2015, 09:02:27 am
I think you should change the max_execution_time = 30 in php.ini.
Do you have access to php.ini on your host? Talk to your host provider about it.

Another way (if you don't have access to php.ini on your host) is to add to archive.php after <?php :

Code: [Select]
ini_set ('max_execution_time', '600');

Let me know if it works for you.
Title: Re: Download complete album als ZIP Fatal error: Maximum execution time
Post by: dlonskey on August 30, 2015, 06:48:24 pm
I think you should change the max_execution_time = 30 in php.ini.
Do you have access to php.ini on your host? Talk to your host provider about it.

Another way (if you don't have access to php.ini on your host) is to add to archive.php after <?php : ini_set ('max_execution_time', '600');

Let me know if it works for you.

I'll have to find out but in the meantime I think I found where this archive.php folder is (in my "include" folder of my coppermine istall). I found the <?php you're talking about and just copy/pasted your code in it's place but I now get this error when I try to upload the whole album:

Parse error: syntax error, unexpected ':' in /home/dealon/SBCgallery.dlonskeyphoto.com/include/archive.php on line 1

I don't have experience in html (I did copy the original file in a different location so I can put it back) so I've attached the txt file of the code so you can see what I've done...hope this helps and thanks
Title: Re: Download complete album als ZIP Fatal error: Maximum execution time
Post by: allvip on August 30, 2015, 06:55:40 pm
The code is ini_set ('max_execution_time', '600');  not  : ini_set ('max_execution_time', '600');
Title: Re: Download complete album als ZIP Fatal error: Maximum execution time
Post by: dlonskey on August 31, 2015, 05:22:39 am
The code is ini_set ('max_execution_time', '600');  not  : ini_set ('max_execution_time', '600');

Thanks allvip...IT WORKS! SWEET...! Granted, the album I was trying only had about 130 pics...normally they'll have around 1200+ pics so I'll have to watch that - maybe spread them out into a few smaller albums.
Title: Re: Download complete album als ZIP Fatal error: Maximum execution time
Post by: allvip on August 31, 2015, 08:45:06 am
You can increase the value 600 to a bigger number if you need it.