#1 2025-05-03 17:51:06

AthLux
Member
2017-03-04
22

How to use piwigo_import_tree.pl

Hello,

I've copied the piwigo_import_tree.pl into the tools directory and tried to run:

Code:

$TopDir/tools/piwigo_import_tree.pl --debug --base_url=https://localhost/matthias/ --user=<myUser> --password=<myPassword> --directory=$uploadTree/2025

In $uploadTree/2025 I have one directory "04-Pressbaum" which includes some pictures. $uploadTree is rwx for all users

Code:

chmod -R ugo=rwx $uploadTree

It create for each directory in import tree an album, as expected, but it don't import any picture .
It looks like it miss "descript.ion" files and can't write into ".piwigo_import_tree.txt"


In detail, I got the following output:
[album 12] "/srv/piwigoStorage/matthias/www/gallery/import/uploadTree/2025/04-Pressbaum/20250426_120016.jpg" upload starts... Use of uninitialized value $photo_id in concatenation (.) or string at /srv/piwigoStorage/matthias/www/gallery/tools/piwigo_import_tree.pl line 375.
completed (151 ms, photo )
[set_photo_properties] for "/srv/piwigoStorage/matthias/www/gallery/import/uploadTree/2025/04-Pressbaum/20250426_120016.jpg"
[set_photo_properties] no descript.ion file
cannot open file "2025/04-Pressbaum/.piwigo_import_tree.txt" for writing at /srv/piwigoStorage/matthias/www/gallery/tools/piwigo_import_tree.pl line 471


Server-Umgebung
Piwigo 15.5.0 Prüfen, ob eine neue Version verfügbar ist.
Installiert auf 19 Februar 2017, vor 8 Jahre 2 Monate 1 Woche 4 Tage
Betriebssystem: Linux
PHP: 8.4.6 (Info anzeigen) [2025-05-03 15:43:19]
MySQL: 10.5.28-MariaDB-0+deb11u1 [2025-05-03 17:43:19]
Grafikbibliothek: External ImageMagick 6.9.11-60
Größe des Cache 22.34 Mo   berechnet vor 1 Woche Aktualisieren
Liste der aktivierten Plugins8
Admin Tools
Check Uploads
Language Switch
LocalFiles Editor
OpenStreetMap
Panoramas
Take A Tour of Your Piwigo
VideoJS

Last edited by AthLux (2025-05-04 08:02:35)

Offline

 

#2 2025-05-05 09:31:44

AthLux
Member
2017-03-04
22

Re: How to use piwigo_import_tree.pl

I switched to tools/remote_sync.pl
It doing the same but importing from directory (directories?) configured in Synchronize/Site manager

Neither Synchronize nor tools/remote_sync.pl create thumbnails of videos or import exif-data for videos.
Independend if my local/config/config.inc.php contain

Code:

$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
$conf['vjs_mediainfo_dir'] = '/usr/bin/';
$conf['vjs_exiftool_dir'] = '/usr/bin/';
$conf['vjs_ffprobe_dir'] = '/usr/bin/';
$conf['ffmpeg_dir'] = '/usr/bin/';

or

Code:

$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
// $conf['vjs_mediainfo_dir'] = '/usr/bin/';
// $conf['vjs_exiftool_dir'] = '/usr/bin/';
// $conf['vjs_ffprobe_dir'] = '/usr/bin/';
// $conf['ffmpeg_dir'] = '/usr/bin/';

Metadata synchronization result is "Metadata used : filesize, width, height, date_creation, latitude, longitude"
No messages in _data/logs/log_<date...>.
The same result if I configure /usr/sbin" as path. This should create an error because it can't be find there.

Anyone have an idea?

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact