Bonjour,
Je suis passé de Piwigo 15.7.0 à 16.2.0 sur deux sites hébergé sur la même machine.
Je n'ai pas vu de suite qu'il y avait un problème avec Batch download.
Depuis cet upgrade les archives d'un album complet crées par bach download fonctionne si je prends la taille originale ou si l'archive est extrêmement petite (genre 4Mo).
Par contre quand je choisi une taille différente pour créer l'archive, cela commence mais l'archive n'arrive jamais.
J'ai le message suivant:
"Préparation
Veuillez patienter, votre téléchargement est en cours de préparation. La page se rafraîchira automatiquement une fois terminé."
Mais cela n'arrive jamais.
Avez-vous une idée d'où cela peut venir?
Piwigo 16.2.0 Dernière version ?
Installé le 24 Mai 2017, il y a 8 ans 7 mois 1 semaine 5 jours
Système d'exploitation: Linux
PHP: 8.5.1 (Montrer les informations) [2026-01-06 10:28:52]
MySQL: 10.5.29-MariaDB-0+deb11u1-log [2026-01-06 11:28:52]
Bibliothèque graphique: External ImageMagick 6.9.11-60
Taille du cache 109758.95 Mo
URL Piwigo: https://lvphoto.be/
et aussi:
URL Piwigo: https://lucnix.be/
détail config Batchdownload:
Fonctionnalités avancées
$conf['batch_download_max_elements']
Valeur maximale du paramètre Nombre maximal de photos par lot .
1000 par défaut.
$conf['batch_download_max_size']
Valeur maximale du paramètre Taille maximale de chaque archive.
500 par défaut.
$conf['batch_download_additional_ext']
Tableau contenant les extensions de fichier qui peuvent être téléchargés (sensible à la casse).
$conf['picture_ext'] par défaut.
$conf['batch_download_file_pattern']
Format des noms de fichier dans l'archive.
Les champs disponibles sont %id%, %filename%, %author%, %dimensions%, %name%, %expiry_date%.
Les functions disponibles sont $escape(xxx), $upper(xxx), $lower(xxx), $strpad(xxx, z, c).
%id%_%filename%_%dimensions% par défaut.
Exemple: $strpad(%id%,4,0)_$escape(%filename%)_$lower(%author%)_%dimensions%.
$conf['batch_download_use_representative_for_ext']
Pour un fichier non image, comme un TIFF ou un PDF, et dans le cas d'une taille multiple (autre chose que la taille originale) l'utilisateur va-t-il télécharger l'original quand même ou bien la taille multiple correspondante de la prévisualisation (l'image représentante). Ce paramètre permet de choisir selon l'extension du fichier original.
array('tif', 'TIF', 'tiff', 'TIFF') par défaut.
Exemple: array('pdf', 'PDF', 'tif', 'TIF')
$conf['batch_download_guest_allowed']
Autoriser les visiteurs anonymes (non identifiés) à télécharger par lot.
false (faux) par défaut.
$conf['batch_download_configure_request_permission']
Une permission doit être accordé avant de pouvoir télécharger les images
false (faux) par défaut.
Dernière modification par LViatour (2026-01-06 11:49:48)
Hors ligne
Pas de retour?
Voici des log ou il semble que Batchdownload dit qu'il ne trouve pas l'image d'origine à convertir. C'est vraiment bizarre vu que les photos peuvent être chargée à toutes les tailles de manière individuelle et batch download fait bien l'archive quand je charge la résolution d'origine.
[2026-01-06 20:36:31][exec=unkonwn] [DEBUG] [i.php] convert "/var/www/piwigo.lucnix.be/upload/2025/12/26/20251226090729-02c15933.jpg" -filter Lanczos -resize 899x600! -interlace line -sampling-factor 4:2:2 "/var/www/piwigo.lucnix.be/_data/i/upload/2025/12/26/20251226090729-02c15933-cu_s9999x600.jpg" 2>&1
[2026-01-06 20:36:32][exec=unkonwn] [DEBUG] [i.php]
src_path: '20251226090729-02c15933.jpg'
derivative_path: '20251226090729-02c15933-cu_s9999x600.jpg'
o_size: '3703 2469 9142707'
d_size: '899 600 539400'
mem_usage: 0.5
timing: array(
'load' => 260,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => '',
'save' => 372,
'send' => 0,
'total' => 632,
)
quality: 96
[2026-01-06 20:37:27][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-fd9b5a60-me.jpg'
[2026-01-06 20:37:31][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-fd9b5a60-me.jpg'
[2026-01-06 20:46:11][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2022/12/07/20221207235350-9f9669e8-sm.jpg'
[2026-01-06 20:47:57][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2023/12/23/20231223224236-781c28a9-la.jpg'
[2026-01-06 20:49:39][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-9be50ec4-sm.jpg'
[2026-01-06 20:58:02][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-e12450bf-me.jpg'
[2026-01-06 20:58:04][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-e12450bf-me.jpg'
[2026-01-06 20:59:14][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-866b932d-me.jpg'
[2026-01-06 20:59:19][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-866b932d-me.jpg'
[2026-01-06 21:01:17][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-74d9afaa-me.jpg'
[2026-01-06 21:01:19][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-74d9afaa-me.jpg'
[2026-01-06 21:04:01][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2018/09/21/20180921114255-55eadd19-me.jpg'
[2026-01-06 21:04:03][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2018/09/21/20180921114255-55eadd19-me.jpg'
[2026-01-06 21:20:19][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-bdac4dc5-me.jpg'
[2026-01-06 21:20:34][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-bdac4dc5-me.jpg'
[2026-01-06 21:29:05][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-575653be-me.jpg'
[2026-01-06 21:29:12][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-575653be-me.jpg'
[2026-01-06 21:31:39][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-b6f61851-me.jpg'
[2026-01-06 21:31:44][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-b6f61851-me.jpg'
[2026-01-06 21:35:59][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2021/11/25/20211125173750-bcc6eea9-me.jpg'
[2026-01-06 21:36:01][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2021/11/25/20211125173750-bcc6eea9-me.jpg'
[2026-01-06 21:36:24][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-efdec9b1-me.jpg'
[2026-01-06 21:36:30][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-efdec9b1-me.jpg'
[2026-01-06 21:36:37][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-c0ecfe29-sm.jpg'
[2026-01-06 21:37:35][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2018/08/29/20180829230719-22848a29-me.jpg'
[2026-01-06 21:37:38][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2018/08/29/20180829230719-22848a29-me.jpg'
[2026-01-06 21:48:00][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-8f74b408-me.jpg'
[2026-01-06 21:48:05][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-8f74b408-me.jpg'
[2026-01-06 22:12:21][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2021/09/08/20210908010729-cb17c8df-sm.jpg'
[2026-01-06 22:12:26][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2022/12/20/20221220191416-04e9ca61-sm.jpg'
[2026-01-06 22:12:41][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2020/11/24/20201124121709-ae24de39-sm.jpg'
[2026-01-06 22:17:30][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-05ac4c7d-me.jpg'
[2026-01-06 22:17:34][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-05ac4c7d-me.jpg'
[2026-01-06 22:25:46][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-71935186-me.jpg'
[2026-01-06 22:25:46][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-47b6951c-me.jpg'
[2026-01-06 22:25:50][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-47b6951c-me.jpg'
[2026-01-06 22:25:50][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-71935186-me.jpg'
[2026-01-06 22:30:35][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-fe1a8651-me.jpg'
[2026-01-06 22:30:38][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-fe1a8651-me.jpg'
[2026-01-06 22:36:45][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-08b3f7b1-me.jpg'
[2026-01-06 22:36:49][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-08b3f7b1-me.jpg'
[2026-01-06 22:38:50][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-cdda6963-me.jpg'
[2026-01-06 22:38:54][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-cdda6963-me.jpg'
[2026-01-06 22:39:57][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-90297398-me.jpg'
[2026-01-06 22:40:02][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-90297398-me.jpg'
[2026-01-06 22:53:16][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-4795b7e2-me.jpg'
[2026-01-06 22:53:19][exec=unkonwn] [ERROR] [i.php] 404 Source not found
url: '/i.php?/upload/2017/06/01/20170601183357-4795b7e2-me.jpg'
[2026-01-06 22:58:53][exec=w4DDL8RaIP] [DEBUG] [admin/intro::264] recent activity calculated in 0.156 s
[2026-01-06 23:00:14][exec=kb2VgwHrmF] [INFO] invalidate_user_cache called
[2026-01-06 23:00:14][exec=vCiGmXNuV4] [INFO] [getuserdata][exec_code=b113][user_id=2] needs user_cache to be rebuilt
[2026-01-06 23:00:14][exec=vCiGmXNuV4] [INFO] [generate_user_cache-u2][exec=25aaa18c] starts now
[2026-01-06 23:00:14][exec=vCiGmXNuV4] [INFO] [generate_user_cache-u2][exec=25aaa18c] wins the race and gets the token!
[2026-01-06 23:00:14][exec=rz6BqMHnDY] [INFO] [getuserdata][exec_code=8aed][user_id=2] needs user_cache to be rebuilt
[2026-01-06 23:00:14][exec=rz6BqMHnDY] [INFO] [generate_user_cache-u2][exec=7607328f] starts now
[2026-01-06 23:00:14][exec=rz6BqMHnDY] [INFO] [generate_user_cache-u2][exec=7607328f] skip
[2026-01-06 23:00:14][exec=rz6BqMHnDY] [INFO] [getuserdata][exec_code=8aed][user_id=2] starts to wait for another request to build user_cache
[2026-01-06 23:00:15][exec=vCiGmXNuV4] [INFO] [getuserdata][exec_code=b113][user_id=2] user_cache generated, executed in 0.542 s
[2026-01-06 23:00:15][exec=rz6BqMHnDY] [INFO] [getuserdata][exec_code=8aed][user_id=2] user_cache generation waiting k=0 user_cache rebuilt, after waiting 1.001 s
[2026-01-06 23:00:18][exec=mfK25FHB24] [INFO] invalidate_user_cache called
[2026-01-06 23:00:19][exec=httfv90wWy] [INFO] [getuserdata][exec_code=8769][user_id=2] needs user_cache to be rebuilt
[2026-01-06 23:00:19][exec=httfv90wWy] [INFO] [generate_user_cache-u2][exec=1fe847fe] starts now
[2026-01-06 23:00:19][exec=httfv90wWy] [INFO] [generate_user_cache-u2][exec=1fe847fe] wins the race and gets the token!
[2026-01-06 23:00:19][exec=httfv90wWy] [INFO] [getuserdata][exec_code=8769][user_id=2] user_cache generated, executed in 0.034 s
[2026-01-06 23:00:51][exec=GWYLdibOFA] [INFO] [getuserdata][exec_code=3ae6][user_id=1] needs user_cache to be rebuilt
[2026-01-06 23:00:51][exec=GWYLdibOFA] [INFO] [generate_user_cache-u1][exec=56b59a75] starts now
[2026-01-06 23:00:51][exec=GWYLdibOFA] [INFO] [generate_user_cache-u1][exec=56b59a75] wins the race and gets the token!
[2026-01-06 23:00:52][exec=GWYLdibOFA] [INFO] [getuserdata][exec_code=3ae6][user_id=1] user_cache generated, executed in 1.041 s
Hors ligne
je viens de le faire mais cela ne change rien....
<?php
/* Dans cette fenêtre, écrivez les informations pour configurer votre galerie Piwigo. */
$conf['show_exif_fields'] = array(
'exif_field_Make' => 'Make',
'exif_field_Model' => 'Model',
'exif_field_ExposureTime' => 'ExposureTime',
'exif_field_FocalLength' => 'FocalLength',
'exif_field_FNumber' => 'FNumber',
'exif_field_ExposureBiasValue' => 'ExposureBiasValue',
'exif_field_ISOSpeedRatings' => 'ISOSpeedRatings',
'exif_field_DateTimeOriginal' => 'DateTimeOriginal',
'exif_field_ExposureProgram' => 'ExposureProgram',
'exif_field_Make' => 'Make',
'exif_field_Model' => 'Model',
'exif_field_ExposureTime' => 'ExposureTime',
'exif_field_FocalLength' => 'FocalLength',
'exif_field_FNumber' => 'FNumber',
'exif_field_ExposureBiasValue' => 'ExposureBiasValue',
'exif_field_ISOSpeedRatings' => 'ISOSpeedRatings',
'exif_field_DateTimeOriginal' => 'DateTimeOriginal',
'exif_field_TakenDate' => 'TakenDate',
'exif_field_ExposureProgram' => 'ExposureProgram',
'exif_field_ModeArray' => 'ModeArray',
'exif_field_SelfTimer' => 'SelfTimer',
'exif_field_ImageQuality' => 'ImageQuality',
'exif_field_Flash' => 'Flash',
'exif_field_Drive' => 'Drive',
'exif_field_FocusMode' => 'FocusMode',
'exif_field_ImageSize' => 'ImageSize',
'exif_field_EasyShootingMode' => 'EasyShootingMode',
'exif_field_Contrast' => 'Contrast',
'exif_field_Saturation' => 'Saturation',
'exif_field_Sharpness' => 'Sharpness',
'exif_field_MeteringMode' => 'MeteringMode',
'exif_field_ExposureProgram' => 'ExposureProgram',
'exif_field_MinFocal' => 'MinFocal',
'exif_field_MaxFocal' => 'MaxFocal',
'exif_field_FlashActivity' => 'FlashActivity',
'exif_field_Stabilization' => 'Stabilization',
'exif_field_SpotMeteringMode' => 'SpotMeteringMode'
);
$conf['graphics_library'] = 'gd';
$conf['batch_download_max_size'] = 8000;
$conf['fckeditor_toolbar_always_full'] = true;
$conf['permalink_generator_autogen'] = true;
$conf['inheritance_by_default'] = true;
Hors ligne
c'est au passage à Piwigo 16.2.0 avant cela aucun problème.
Hors ligne
problème résolu par mon informaticien.
voici les infos:
Pour très résumer, le message d'avertissement de déprécation de la fonction "implode" dans Smarty (le moteur de templates utilisé par Piwigo) "bavait" dans le code JavaScript de la page de download, ce qui générait une erreur et interrompait l'exécution du JavaScript en soi (qui normalement doit appeler i.php pour chaque image qui manque dans le format demandé).
J'ai corrigé et soumis un ticket et un PR à BatchDownloader, en espérant qu'ils appliquent ça bientôt, mais, sur le serveur, c'est corrigé et j'ai laissé une copie de l'original et une copie de la version fixée dans le répertoire des templates du plugin pour qu'une mise à jour ultérieure qui écraserait éventuellement ce fix puisse être corrigée rapidement par différence.
Issue créée dans BatchDownloader: [Github] Piwigo-BatchDownloader issue #66
Hors ligne