Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: petewadey on January 23, 2022, 05:18:06 AM

Title: Cannot modify header information - headers already sent
Post by: petewadey on January 23, 2022, 05:18:06 AM
I'm getting this error message after updating to smf 2.0.19 and 7.4 php Is there an easy fix for this?

2: Cannot modify header information - headers already sent
 /smf/Sources/Subs.php
Line: 3411

==>3411:      header('Content-Type: text/' . (isset($_REQUEST['xml']) ? 'xml' : 'html') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
Title: Re: Cannot modify header information - headers already sent
Post by: GF2022 on January 24, 2022, 09:47:59 AM
I am getting this error too after upgrading to 2.0.19 (but upgrade failed) and php 7.4

[24-Jan-2022 14:30:13 Europe/Vatican] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/forum/public_html/escort/Sources/Errors.php:414) in /home/forum/public_html/escort/Sources/Errors.php on line 355

same for line 356, 357, 360, 361, 562
Title: Re: Cannot modify header information - headers already sent
Post by: Arantor on January 24, 2022, 10:11:33 AM
What are you doing when you get this error?

What mods are installed?
Title: Re: Cannot modify header information - headers already sent
Post by: petewadey on January 24, 2022, 11:16:48 AM
A guest set off my error messages looking at attachments. I can't replicate the error myself? I have got Automatic Attachment Rotation mod if it could be that?
Title: Re: Cannot modify header information - headers already sent
Post by: GF2022 on January 24, 2022, 12:54:34 PM
I made an update of lots of files manually and the errors have disappeared.
Errors.php was actually one of the files I udpated.

Title: Re: Cannot modify header information - headers already sent
Post by: petewadey on January 25, 2022, 05:40:33 AM
Quote from: Arantor on January 24, 2022, 10:11:33 AMWhat are you doing when you get this error?

What mods are installed?

Mods installed

Force Topic Read On Login Mod
Country Flags   3.0   
Stop Forum Spam   1.0
Pretty URLs   2.3.1a
Ultimate Menu   1.1.4
Contact Page   6.0
Automatic Attachment Rotation (and Resize)   6.10
Join Reason   1.5
Snowflakes   1.7
Responsive Curve   1.0.0
Watermark   1.6.4
Users Online Today   2.1
Sitemap   2.2.0
Pretty URLs Extras   1.0
Unknown Actions   1.3
JDALIP - Join Date And Location In Posbit   1.3.2
Regbar Warning   1.0.5
Title: Re: Cannot modify header information - headers already sent
Post by: petewadey on February 20, 2022, 07:20:40 AM
I've still not solved this one?