•  » Beta testing
  •  » Plugin evaluation: synchro_fast – synchronization without 504 errors

#1 2026-09-02 09:48:18

Charles69
Member
2025-10-22
49

Plugin evaluation: synchro_fast – synchronization without 504 errors

Hello,

Whenever the number of photos to synchronize exceeds a certain threshold (ranging from 500 to 2,000 or more), 504 errors occur, and nothing seems to happen—or rather, it becomes unclear what is actually going on.
Several plugins aim to solve this issue, including Album Pilot; however, I still encountered 504 errors with it, and more importantly it fails to handle syntax errors in file or directory names.

I am proposing a new plugin, 'synchro_fast', designed to eliminate 504 errors and provide real-time tracking of the synchronization process.

The plugin adds a 'Fast Sync' tab under Admin > Tools > Synchronize.

The selection menu has been rewritten to offer three independent options:
1 - Directories only
2 - Directories + files
3 - Metadata update

Option 1 is identical to the original function.
Option 2 corresponds to the original "Directories + files" function plus the reading of metadata from new photos.

Option 3 allows for granular control over metadata updates:
- Update description
       with a sub-option: Except if the description is rich text (HTML)
       this sub-option prevents overwriting descriptions created with the WYSIWYG editor
- Update title
- Update author
- Update keywords
       with a sub-option: Merge
       this sub-option prevents overwriting keywords already entered in Piwigo

The synchronization process can be paused and resumed.
The "Directories + files" option processes only new photos/videos; it can be run on very large libraries, as only changes (additions or deletions) will be processed.

It operates differently from the original synchronization process: albums are processed first, followed by photos (in batches of 20), and finally metadata. This sequencing eliminates 504 errors.

After selecting the options and albums to process, click 'Synchronize'; the process begins by calculating the number of albums and photos to handle (indicated by an hourglass icon).
You can then track the progress via a progress bar.

Album and photo names are validated based on the existence or content of `$conf['sync_chars_regex']` (which allows spaces and accented characters in names).
Directories and files with non-compliant names are listed so they can be corrected.

A synchronization summary table is displayed dynamically.

If the synchronization takes too long, you can pause it and resume it later.


The plugin is available for evaluation here: https://github.com/Charles69-piwigo/syn … s/tag/v1.1

Thanks in advance for your feedback.

Offline

 
  •  » Beta testing
  •  » Plugin evaluation: synchro_fast – synchronization without 504 errors

Board footer

Powered by FluxBB