Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Download complete album als ZIP Fatal error: Maximum execution time  (Read 5426 times)

0 Members and 2 Guests are viewing this topic.

dlonskey

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21

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?
« Last Edit: August 30, 2015, 10:27:32 am by allvip »
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Download complete album als ZIP Fatal error: Maximum execution time
« Reply #1 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.
« Last Edit: August 31, 2015, 08:44:13 am by allvip »
Logged

dlonskey

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP Fatal error: Maximum execution time
« Reply #2 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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Download complete album als ZIP Fatal error: Maximum execution time
« Reply #3 on: August 30, 2015, 06:55:40 pm »

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

dlonskey

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP Fatal error: Maximum execution time
« Reply #4 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.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Download complete album als ZIP Fatal error: Maximum execution time
« Reply #5 on: August 31, 2015, 08:45:06 am »

You can increase the value 600 to a bigger number if you need it.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.