[14.4.0, synchronization] Cannot redeclare strip_html_in_metadata() #1868

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

Introduced in Piwigo 14.4.0, new bug on synchronization:

Fatal error: Cannot redeclare strip_html_in_metadata() (previously declared in include/functions_metadata.inc.php:186) in include/functions_metadata.inc.php on line 186

That is because the function strip_html_in_metadata is declared inside the function get_exif_data which can be called more than once.

Introduced in Piwigo 14.4.0, new bug on synchronization: > Fatal error: Cannot redeclare strip_html_in_metadata() (previously declared in include/functions_metadata.inc.php:186) in include/functions_metadata.inc.php on line 186 That is because the function `strip_html_in_metadata` is declared inside the function `get_exif_data` which can be called more than once. <!-- github-sync-id:2250553311 -->
adam closed this issue 2026-10-05 00:59:12 +02:00
Author
Owner

I'm seeing this as well when I run sync
Fatal error: Cannot redeclare strip_html_in_metadata() (previously declared in /app/www/public/include/functions_metadata.inc.php:186) in /app/www/public/include/functions_metadata.inc.php on line 186

Not sure that I'm doing anything bad per say... :(.
Is there a fix?

I'm seeing this as well when I run sync Fatal error: Cannot redeclare strip_html_in_metadata() (previously declared in /app/www/public/include/functions_metadata.inc.php:186) in /app/www/public/include/functions_metadata.inc.php on line 186 Not sure that I'm doing anything bad per say... :(. Is there a fix? <!-- github-comment-id:2076631428 -->
Author
Owner

This is kind of a breaking bug... any chance the "latest" version on the website could be rolled back to 14.3?

This is kind of a breaking bug... any chance the "latest" version on the website could be rolled back to 14.3? <!-- github-comment-id:2094883342 -->
Author
Owner

I'm seeing this as well when I run sync Fatal error: Cannot redeclare strip_html_in_metadata() (previously declared in /app/www/public/include/functions_metadata.inc.php:186) in /app/www/public/include/functions_metadata.inc.php on line 186

Not sure that I'm doing anything bad per say... :(. Is there a fix?

  • Make a backup of the problem file
  • Open the file in an editor
  • Cut and paste the block of code in fix 2150
  • Save and try
> I'm seeing this as well when I run sync Fatal error: Cannot redeclare strip_html_in_metadata() (previously declared in /app/www/public/include/functions_metadata.inc.php:186) in /app/www/public/include/functions_metadata.inc.php on line 186 > > Not sure that I'm doing anything bad per say... :(. Is there a fix? - Make a backup of the problem file - Open the file in an editor - Cut and paste the block of code in fix 2150 - Save and try <!-- github-comment-id:2109252624 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1868