PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
wads24
Registered User
Posts: 679
Joined: Fri Jun 10, 2005 4:44 am
Name: James

PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php

Post by wads24 »

Support Request Template
What version of phpBB are you using? phpBB 3.3.11
What is your board's URL? No answer given
Who do you host your board with? No answer given
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Please select your answer
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What styles do you currently have installed? prosilver
What language(s) is your board currently using? english
Which database type/version are you using? I Don't Know
What is your level of experience? New to PHP but not phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? I checked my php error log on my server and keep seeing this error come up over and over...
PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3035) in /includes/functions.php on line 4150
Please describe your problem. I checked my php error log on my server and keep seeing this error come up over and over...
PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3035) in /includes/functions.php on line 4150
Generated by SRT Generator


I would appreciate any suggestions as to why this error is happening.
Thanks in advance for a reply.
User avatar
Mike-on-Tour
Registered User
Posts: 526
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php

Post by Mike-on-Tour »

There seems to be a whitespace character in some file prior to the <?php first line.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26828
Joined: Fri Aug 29, 2008 9:49 am

Re: PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php

Post by Mick »

Probably /includes/functions.php

See Knowledge Base - phpBB3 and UTF-8 without BOM

Note: I’ve not seen this error for years, I assumed PHP had sorted the BOM issue out but I was obviously wrong.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10582
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster

Re: PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php

Post by Noxwizard »

Based on the line numbers, there should be another error message printed prior to those which is the actual error. The header errors are a result of the first error message being printed.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53523
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php

Post by Brf »

wads24 wrote: Fri Apr 12, 2024 8:54 pm (output started at /includes/functions.php:3035)
Yes. That line (3035) in includes/functions.php is where error messages are output.
That error message is being output before the cookies are written, so it is causing the subsequent error at 4150 where the cookies are written. As Noxwizard explained, you need to fix that earlier error.
User avatar
wads24
Registered User
Posts: 679
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php

Post by wads24 »

Thanks guys. That was it...
Thanks in advance for a reply.

Return to “[3.3.x] Support Forum”