Warning: Cannot modify header information - headers already sent in /var/www/piwigo/action.php on line 228 #1529

Closed
opened 2026-10-05 00:47:09 +02:00 by adam · 5 comments
Owner

I'm getting the above warning when trying to download an image in Piwigo 13.0.0. This corrupts the download.

Could be related to dd44d0e409, as I think headers can't be sent after calling flush()

I'm getting the above warning when trying to download an image in Piwigo 13.0.0. This corrupts the download. Could be related to dd44d0e40999632fb1d80f313f51b6decbfa937c, as I think headers can't be sent after calling `flush()` <!-- github-sync-id:1405590343 -->
adam closed this issue 2026-10-05 00:47:09 +02:00
Author
Owner

OK, looks a lot like https://piwigo.org/forum/viewtopic.php?id=32254

Did you try to install the previous version of action.php ?

OK, looks a lot like https://piwigo.org/forum/viewtopic.php?id=32254 Did you try to install the previous version of `action.php` ? <!-- github-comment-id:1275856000 -->
Author
Owner

and also, is it related to #1741 (version of Firefox)

and also, is it related to #1741 (version of Firefox) <!-- github-comment-id:1275856784 -->
Author
Owner

What I did as a quick fix is to move the flush() call after the foreach loop. That works.

What I did as a quick fix is to move the `flush()` call after the `foreach` loop. That works. <!-- github-comment-id:1275877744 -->
Author
Owner

@nirbhay18 and @erAck what do you think?

@nirbhay18 and @erAck what do you think? <!-- github-comment-id:1276226647 -->
Author
Owner
Just created https://github.com/Piwigo/Piwigo/pull/1749 <!-- github-comment-id:1276314759 -->
adam changed title from Warning: Cannot modify header information - headers already sent in /var/www/piwigo/action.php on line 228 to Warning: Cannot modify header information - headers already sent in /var/www/piwigo/action.php on line 228 2026-10-27 11:24:19 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1529