Fixing "Warning: Cannot modify header information -- headers already sent by.." Error

Fixing "Warning: Cannot modify header information -- headers already sent by.." Error

Top Hat Dan

1 десятилетие назад

10,333 Просмотров

For a cool Ebook on learning Simple PHP programming go here:
http://www.simplephp.com/?hop=deal333

I have found an easy solution for everybody. You do not have to modify lines and lines of PHP like many suggest. Watch the video above.

Тэги:

#Fixing #Error #php_error #wordpress #wordpress_error
Ссылки и html тэги не поддерживаются


Комментарии:

@karenkuzi8542
@karenkuzi8542 - 07.09.2021 20:22

Great if you are using Wordpress, but what if you are not using Wordpress? Any hack for hand-coded code?

Ответить
@slyjony
@slyjony - 28.05.2021 13:17

I try it, nop, not working for me, there may be problem in another file, i think

Ответить
@krimbelkacem5751
@krimbelkacem5751 - 11.04.2019 15:52

?> is a closing php tag

Ответить
@nick8292
@nick8292 - 27.11.2018 23:01

That seems to have done the trick. Thank you

Ответить
@leebarnes9486
@leebarnes9486 - 21.06.2018 15:21

Yes!!! Like a boss!!! Thanks

Ответить
@rockikaa
@rockikaa - 07.03.2018 17:23

hello, i have this error on my website on opencart:
Warning: Cannot modify header information - headers already sent by (output started at /home/linunetg/public_html/catalog/language/ru-ru/ru-ru.php:1) in /home/linunetg/public_html/system/library/response.php on line 36

can you help me? cant find anything.
thank you!

Ответить
@lilan.708
@lilan.708 - 25.06.2017 04:59

Funny. I couldn't find the ?> there, but I actually tried ADDING it, and it seemed to work! Thanks for telling me where to go!!!

Ответить
@ClinicAccelerator
@ClinicAccelerator - 27.01.2017 01:44

But, I can't even log in to my wordpress dashboard because of that error. Is there another way to login to my wordpress site?

Ответить
@thisgirljay7629
@thisgirljay7629 - 23.01.2017 11:47

Thank you Thank you Thank you!!! Worked for me :) Youre a gem!

Ответить
@leblogdizuwa9575
@leblogdizuwa9575 - 02.11.2016 02:47

HAAHAHAH THANK YOU SO MUCH. I WENT INTO THAT FUNCTION.PHP TO DO SOMETHING AT THE BOTTOM. I DELETED IT THEN I GUESS I LEFT THE ?> THERE. THANKS SIR

Ответить
@LindeeGVideos
@LindeeGVideos - 20.09.2016 20:58

I don't have a ">" only the opening "<?" - what next?

Ответить
@anesp.a913
@anesp.a913 - 22.06.2016 12:34

Dear Dan,
I try your solution . But still got error as : Warning: Cannot modify header information - headers already sent by (output started at /home/content/87/12501387/html/index.php:2) in /home/content/87/12501387/html/wp-includes/pluggable.php on line 1179

advise me

Ответить
@bcei692
@bcei692 - 05.06.2016 18:16

Instead of deleting >? i wrote on >? it solved my problem. Fuckkkkkin Awesome trick..
Thanks Buddy

Ответить
@hoops056
@hoops056 - 03.06.2016 18:02

I have literally spent hours and hours researching different ways of fixing this issue. I looked at your video and deleted that stupid ?> and it solved all my problems. WOW

Ответить
@adrianacarolinaperezduran6216
@adrianacarolinaperezduran6216 - 31.03.2016 01:37

I cannot even find theme functions

Ответить
@haileysault6823
@haileysault6823 - 29.03.2016 16:53

This vid might be 3 years old but still works - THANK YOU

Ответить
@teotaban1338
@teotaban1338 - 11.01.2016 11:13

Hi Daniel, I follow this but doesn´t works on my website :(

Ответить
@abdeljalilabdeljalilA
@abdeljalilabdeljalilA - 11.12.2015 00:45

I have a realy Big problem...THAT IS THE CRASY WARNING
Warning: Cannot modify header information - headers already sent by (output started at /homepages/20/d195044051/htdocs/wsb4413378102/wp-config.php:1) in /homepages/20/d195044051/htdocs/wsb4413378102/wp-includes/pluggable.php on line 1196

It doesn't Work x) I delited it x) x)

Ответить
@laeflaefpro8365
@laeflaefpro8365 - 28.08.2015 19:03

not for me i'm not using cms

Ответить
@kusumsharma4132
@kusumsharma4132 - 06.07.2015 17:50

thnx a lottttttttttttttttttt... It worked for me..:)

Ответить
@nimeshkumar7524
@nimeshkumar7524 - 01.06.2015 20:32

Thank You Very Much Sirr Its Working Now. Thank You soo much i have been working with this error. Thank You Soo Much Sir

Ответить
@pokora816
@pokora816 - 26.03.2015 02:53

the beeeeeeeeeeeest video .thnk's mennnnn a lot

Ответить
@SGreen-vp7in
@SGreen-vp7in - 23.02.2015 19:34

Hello guys we are having the same problem as you lot are, but we are also unable to even log into our dashboard becuase of this Warning... Warning: Cannot modify header information - headers already sent by (output started at /home1/sltgreen/

Has someone found out how to resolves this problem yet as we cant find no other help anywhere..

Ответить
@Etudzacademy
@Etudzacademy - 19.02.2015 20:18

It doesn't Work x) I delited it x) x) 

Ответить
@Etudzacademy
@Etudzacademy - 19.02.2015 20:08

I have a realy Big problem...THAT IS THE CRASY WARNING 
Warning: Cannot modify header information - headers already sent by (output started at /home/hichem/public_html/mastercard/wp-config.php:1) in /home/hichem/public_html/mastercard/wp-login.php on line 424

Warning: Cannot modify header information - headers already sent by (output started at /home/hichem/public_html/mastercard/wp-config.php:1) in /home/hichem/public_html/mastercard/wp-login.php on line 437

Warning: Cannot modify header information - headers already sent by (output started at /home/hichem/public_html/mastercard/wp-config.php:1) in /home/hichem/public_html/mastercard/wp-includes/pluggable.php on line 918

Warning: Cannot modify header information - headers already sent by (output started at /home/hichem/public_html/mastercard/wp-config.php:1) in /home/hichem/public_html/mastercard/wp-includes/pluggable.php on line 919

Warning: Cannot modify header information - headers already sent by (output started at /home/hichem/public_html/mastercard/wp-config.php:1) in /home/hichem/public_html/mastercard/wp-includes/pluggable.php on line 920
MasterCard souktnine

Ответить
@TheSud007
@TheSud007 - 09.02.2015 15:22

Hello Den .. 
i am using Opencart 2.1.1 i try my level best but i cant fix this some say its editor problem ..
so when i saw this video i search for war you say but in opencart in under in theme there is fo function.php page could you please help me out .. 
Path - public_html/u845747/Demo2/catalog/view/theme/(after this all .tpl file si here )

Ответить
@sirnoniko5024
@sirnoniko5024 - 24.11.2014 09:44

I deleted it, :/ but a new error occured "Parse error: syntax error, unexpected '<' in /home/i9u4anok/public_html/wp-content/themes/twentyfourteen/functions.php on line 379"

Ответить
@judevoisin3393
@judevoisin3393 - 23.07.2014 20:50

yeah i can't log into my admin as well to even get to that point like Martiene van Steyn just mentioned

Ответить
@RoadsideGarage
@RoadsideGarage - 07.11.2013 00:08

It corrupts the file.

Ответить
@DurrellLeak
@DurrellLeak - 29.10.2013 00:14

I see that message but i cant even log into my back office to delete anything... now its saying cookies...and there is nothing wrong with my cookies...tried to log in on 3 different computers

Ответить
@092philipp
@092philipp - 25.09.2013 16:11

omg...OMG....OMFG YOU DID IT! YOU FUC*ING DID IT! THX!

Ответить
@missmartinis1
@missmartinis1 - 13.09.2013 03:50

Hey Dan, I cant even get to my dashboard... it just gives me several lines of that crappy "cant modify header information" message and no dashboard :-( any ideas?

Ответить
@jayrai36
@jayrai36 - 11.09.2013 11:27

Hey Dan, I can't access my admin page because every time I click the link from my email that takes normally takes me to the login page, that "cannot modify header information" error comes up. I was trying to see if there was a solution from the other comments below but you didn't have an answer for those who have the same problem as I do. Do you have a fix for this?

Ответить
@LyresVlog
@LyresVlog - 07.09.2013 20:43

Thank you so much man, it worked, love ya!

Ответить
@TopHatDan
@TopHatDan - 21.08.2013 05:19

Just write me here in my inbox or go to my website. Or write me here; dan(at)dangillette(dot)com

Ответить
@umminkug
@umminkug - 20.08.2013 18:22

how do i email you?

Ответить
@TheRecklessTimes
@TheRecklessTimes - 30.07.2013 00:03

loads of ?> im mine - deleted a few - now getting Parse error: syntax error, unexpected '<' in /websites/123reg/LinuxPackage21/re/ck/le/recklesstimes.co.uk/public_html/recklesstimes/wp-content/themes/pinboard/functions.php on line 218 nightmare..

Ответить
@YummyMediterranean
@YummyMediterranean - 27.07.2013 18:58

P.S. I cant access my admin page either.

Ответить
@YummyMediterranean
@YummyMediterranean - 27.07.2013 18:36

Dan i have exactly the problem you are referring to. Because I am new to WordPress, i did not understand how to go about solving my problem based upon the video. Can you help me?

Ответить
@TopHatDan
@TopHatDan - 24.07.2013 03:20

I was in a hotel so I couldn't. If you are familiar with wordpress the instructions I give are very simple. If you are not familiar then I guess a video could be helpful. I'll see what I can do then add a link.

Ответить
@shwizzy
@shwizzy - 24.07.2013 00:53

This really isn't helpful at all dude.. It would be much more helpful if you made a video of you actually sorting through it step by step instead of talking in to a camera. Just my 2 cents.

Ответить
@TopHatDan
@TopHatDan - 20.06.2013 05:01

I can try. Message me.

Ответить
@DanVlady
@DanVlady - 19.06.2013 08:06

Hey Dan, if I give u the URL and my admin panel of domain, anyway you could solve the issue?

Ответить
@DanVlady
@DanVlady - 19.06.2013 05:24

I deleted the two <? phrases up at the top of the page as well as the buttom. Then L?php above the word global. Now, I can't even access my wordpress blog without getting the message Parse error: syntax. Please help me out Dan.

Ответить
@TopHatDan
@TopHatDan - 19.06.2013 05:06

Dude! Really? Never delete stuff that can change your whole page without making sure you are deleting the right thing. I was pretty clear in this video. Do you know what you deleted exactly?

Ответить
@TopHatDan
@TopHatDan - 16.05.2013 02:17

You need to delete ?> in the php theme file. You did that?

Ответить
@HelloFromTokyo
@HelloFromTokyo - 15.05.2013 20:00

It says the my <? is the problem | Warning: Cannot modify header information - headers already sent by (output started at /home/u446697960/public_html/gaming/inc/head.php:1) I've tried <?php and that didn't work either T_T

Ответить
@chrisquin9
@chrisquin9 - 15.03.2013 16:47

I cant access my admin page so how do i fix it ?

Ответить