Opened 6 years ago
Closed 6 years ago
#1484444 closed Bugs (duplicate)
Stupid PHP Warnings because of headers()
| Reported by: | SNo0py | Owned by: | |
|---|---|---|---|
| Priority: | 2 | Milestone: | |
| Component: | Client Scripts | Version: | 0.1-beta |
| Severity: | minor | Keywords: | |
| Cc: |
Description
A lot of times I find
PHP Warning: Cannot modify header information - headers already sent in...
in the logs. This can easily be avoided by adding
if(!headers_sent())
before the header() call (i.e. in program/include/rcube_shared.inc on line 154!).
This is just a workaround, ideally the code is written in a way so it does not send headers just in the middle of the code. But at least get rid of the warnings!
Change History (2)
comment:1 Changed 6 years ago by thomasb
- Severity changed from major to minor
comment:2 Changed 6 years ago by thomasb
- Resolution set to duplicate
- Status changed from new to closed
Duplicate of ticket #1483926
Note: See
TracTickets for help on using
tickets.

There should be no output before the script terminates. Those errors are mostly caused by included localization files that have an UTF-8 BOM or other whitespace. Instead of adding this workaround we have to find the files causing those errors.