Piwigo / Piwigo-BatchDownloader

Allows users to download pictures sets from your Piwigo gallery in a ZIP file. Compatible with User Collections.
http://piwigo.org/ext/extension_view.php?eid=616
GNU General Public License v2.0
9 stars 12 forks source link

Unable to locate file error due to max_execution_time php.ini parameter too low #26

Open skilleyes opened 4 years ago

skilleyes commented 4 years ago

Hi, I've encountered a problem, when trying to download large files (many videos). The zip files were typically over 500Mb.

I would get a "Unable to locate file" error.

After searching for a bit, I found out that the php.ini "max_execution_time" parameter was the culprit. Default value was 30 seconds and zipping large files would take more than 30s. I had files such as piwigo_album_foobar.zip.4AHGvj which meant that the zipping process was very probably interrupted by the 30s limit.

Setting this value "max_execution_time = 120" to 120 seconds fixed it for me.

I'm suggesting to include this information in the plugin documentation maybe in a "Troubleshoot" section ?

Hope this helps out !