-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: cannot set response code - headers already sent (PHP 8.3) #45835
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
I edited the post to include the full log message. There are no other errors prior to this one, and no message in the setup warnings about missing PHP extensions either. |
This line of code only gets executed after another error has occurred and been logged. Again, you didn't fill out the template. It could be as simple as your server/lib/private/legacy/OC_Template.php Line 257 in b5275f7
Please fill out the missing elements of the form. We ask for that information to be able to help you. |
I changed my logs from warnings to debug, and it seems I'm getting this error before the 'cannot set response code' message.
|
The error only occurs with video files over 5MB. I've tested this on a different server and a fresh NC install. I'm not sure what else I can fill in on the form, the error is easy to reproduce. |
We are facing the same issue in our Nextcloud instance. Nextcloud: 29.0.2.2 |
I have the same issue, I have hundreds of errors of this type in my log. |
I have the same issue. Also hundreds of error messages in the log. |
Cc @sorbaugh |
Same issue here Nextcloud 28.0.3 using the linuxserver.io docker image |
Same issue here, using Nextcloud 29.0.3.4 with PHP 8.3.8 with Nginx on Linux (NixOS 24 .05). |
Well, I have the same issue:
PHP 8.3.6 and Nextcloud 29.0.4 on Ubuntu 24.04 |
Same issue:
Nextcloud 29.0.4 |
Same issue with older NC 28.0.9. |
Hi, |
I have the same issue with NC 29.0.6, PHP 8.3.8, FreeBSD 13.1, Caddy 2.7.6 |
Same problem here: NC 29.0.4, PHP 8.3, Ubuntu 24.04, Apache2 Similarly to OC seems to be occuring while playing video from share: |
This error is coming up when PHP's server/lib/private/Files/View.php Lines 432 to 436 in a90f0a6
This code was added via #40233. It's in most our recent majors: >=25.0.11, >=26.0.6, >=27.1.0, >=28.0.0 so it's been in the wild for awhile w/o reports until this June. The main difference is the increasing prevalence of PHP 8.3. Are any of you experiencing this not using php-fpm? |
So, this is specific to Video playing then, right? Can you be more clear about the error, what do you see on the screen, how does the page behave? |
I can reproduce with stable29 and PHP 8.3, using a long video and moving the cursor in it. But it’s only an error in the log, it work fine apart from that. Gonna look into it. |
Ok, so the issue is this:
I’m not sure what’s the clean way to fix it, it’s useless to catch the error and try to display it, the connection is already gone. |
The following patch should do it: https://github.com/nextcloud/server/pull/47971.diff |
Bug description
Hello, I'm encountering an error with shared links when using PHP 8.3. There are no errors when using PHP 8.2
Steps to reproduce
Expected behavior
No error.
Installation method
Manual install with zip file.
Nextcloud Server version
29
Operating system
Ubuntu 24.04
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Files
Nextcloud Signing status
Disabled
Nextcloud Logs
No response
Additional info
Cloudpanel.io control panel.
The error only seems to trigger with video files larger than 5MB.
The text was updated successfully, but these errors were encountered: