-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benign error in nc log - Cannot set response code - headers already sent #1133
Comments
Thanks for the report. What is the logging level where this is shown? I haven't seen this on NC 28.0.2 but maybe there is some new check in 28.0.3. It's possible that I'm using the NC |
It shows up at the error level. |
Don't try to set the response status again in case the file streaming has already successfully started. This has probably never made sense but prior to PHP 8.3 this was just silently ignored. refs #1133
Now I managed to reproduce and fix this. The key was to use PHP 8.3, this error didn't appear with PHP 8.2 regardless of the cloud version. |
Thank you! I just tested the fix on my install and its working fine (Isn't PHP a neat thing?). Guess just to go show how much I use the app that it was triggered by every new song I listened to :) |
The fix is now released in Music v1.11.0. |
Hi I have: Music 1.10.0
nextcloud 28.0.3
php 8.3.3
pgsql 15.6
nginx 1.25.4
This error keeps repeatedly flooding the nextcloud log. It doesn't seem to effect anything but I was wondering if you might have any idea:
http_response_code(): Cannot set response code - headers already sent (output started at /var/www/nextcloud/apps/music/lib/Http/FileStreamResponse.php:99) at /var/www/nextcloud/lib/private/AppFramework/Http/Output.php#77
The text was updated successfully, but these errors were encountered: