Issue #2546646 by AlexKirienko, dpovshed, RenatoG: Warning: Cannot modify header information - headers already sent