News:

Wondering if this will always be free?  See why free is better.

Main Menu

Cannot modify header information - headers already sent

Started by petewadey, January 23, 2022, 05:18:06 AM

Previous topic - Next topic

petewadey

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']));

GF2022

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

Arantor

What are you doing when you get this error?

What mods are installed?

petewadey

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?

GF2022

I made an update of lots of files manually and the errors have disappeared.
Errors.php was actually one of the files I udpated.


petewadey

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

petewadey


Advertisement: