6.0.0-beta1
1/10/26

[#9048] Accessing /dimp/compose.php generates 'headers already sent in Unknown on line 0'
Summary Accessing /dimp/compose.php generates 'headers already sent in Unknown on line 0'
Queue DIMP
Queue Version 1.1.4
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester Valentin.Vidic (at) carnet (dot) hr
Created 05/19/2010 (5715 days ago)
Due
Updated 05/19/2010 (5715 days ago)
Assigned
Resolved 05/19/2010 (5715 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
05/19/2010 05:01:06 PM Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
This doesn't technically solve your issue - there is still a problem 
somewhere in your output chain.  This solution just happens to mask 
the error message.

However, it is proper to remove this buffer when finished using it for 
the limited purpose for which it is needed, so it has been fixed.
05/19/2010 05:01:03 PM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

Bug: 9048
Submitted by: Valentin.Vidic@CARNet.hr
Remove buffer after done using it.
http://cvs.horde.org/diff.php/dimp/lib/Views/Compose.php?rt=horde&r1=1.20.2.13&r2=1.20.2.14&ty=u
05/19/2010 02:52:18 PM Valentin (dot) Vidic (at) carnet (dot) hr Comment #1
Priority ⇒ 1. Low
New Attachment: dimp_compose_ob.diff Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ DIMP
Summary ⇒ Accessing /dimp/compose.php generates 'headers already sent in Unknown on line 0'
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
It seems this is a problem with output buffering. ob_start in 
dimp/lib/Views/Compose.php opens a new output buffer on the stack but 
then calls ob_clean instead of ob_end_clean to destroy the temporary 
buffer. From the ob_start manual:

Output buffers are stackable, that is, you may call ob_start() while 
another ob_start() is active. Just make sure that you call 
ob_end_flush()  the appropriate number of times. If multiple output 
callback functions are active, output is being filtered sequentially 
through each of them in nesting order.

Saved Queries