"Deprecated: addslashes()...." when syncing gallery #1877

Closed
opened 2026-10-05 00:59:31 +02:00 by adam · 2 comments
Owner

Piwigo 14.4.0 (Truechart on TrueNAS SCALE)

When I sync thousands of photos, the sync page errors to repeating this message over and over:

Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /app/www/public/admin/include/functions_metadata.php on line 107

Until it stops this this message:

Fatal error: Maximum execution time of 30 seconds exceeded in /app/www/public/admin/include/functions_metadata.php on line 185

Piwigo 14.4.0 (Truechart on TrueNAS SCALE) When I sync thousands of photos, the sync page errors to repeating this message over and over: `Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /app/www/public/admin/include/functions_metadata.php on line 107` Until it stops this this message: `Fatal error: Maximum execution time of 30 seconds exceeded in /app/www/public/admin/include/functions_metadata.php on line 185` <!-- github-sync-id:2292935237 -->
adam closed this issue 2026-10-05 00:59:32 +02:00
Author
Owner

you have got php 8.x ?

solve : add ?? '' to parameters function
$exif[$pwg_key] = addslashes($exif[$pwg_key] ?? '');

you have got php 8.x ? solve : add `?? ''` to parameters function `$exif[$pwg_key] = addslashes($exif[$pwg_key] ?? '');` <!-- github-comment-id:2264704100 -->
Author
Owner

Hi, sorry for the late reply. I ended up getting rid of Piwigo due to numerous glitches and needing to ongoingly tweak settings and configs. Months ago I moved all my 60'000 photos/videos to NextCloud/Memories and haven't looked back since.

Hi, sorry for the late reply. I ended up getting rid of Piwigo due to numerous glitches and needing to ongoingly tweak settings and configs. Months ago I moved all my 60'000 photos/videos to NextCloud/Memories and haven't looked back since. <!-- github-comment-id:2475818514 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1877