Ticket #1484444 (closed Bugs: duplicate)

Opened 18 months ago

Last modified 16 months ago

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

Changed 18 months ago by thomasb

  • severity changed from major to minor

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.

Changed 16 months ago by thomasb

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of ticket #1483926

Note: See TracTickets for help on using tickets.