Download complete album als ZIP Fatal error: Maximum execution time Download complete album als ZIP Fatal error: Maximum execution time
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Download complete album als ZIP Fatal error: Maximum execution time

Started by dlonskey, August 30, 2015, 06:28:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dlonskey

Quote from: dlonskey on August 23, 2015, 04:55:42 PM
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 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?

allvip

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.

dlonskey

Quote from: 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 : 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

allvip

The code is ini_set ('max_execution_time', '600');  not  : ini_set ('max_execution_time', '600');

dlonskey

Quote from: 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');

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.

allvip

You can increase the value 600 to a bigger number if you need it.