MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > General Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old June 22nd, 2005, 01:08   #1
keymaster
 
Join Date: Jan 2005
Posts: 39
keymaster is on a distinguished road
Default Warning: Cannot modify header information - headers already sent

Hi,

I was running 4.5.2, and everything was fine.

Suddenly yesterday, without any changes made by me, the warnings (Below) started coming out above the header of my home page, pushing everything down.

Also, my admin panel no longer lets me in. I see the adress bar change from administrator/index.php to index2.php then back to index.php, and I am back to the admin log-in screen.

On the bottom of the browser window I see some attempt to go to www.expdialer.com but nothing happens.

Can anyone help with advice?

Here are the warnings:
----------------------

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/includes/mambo.php on line 302

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/includes/mambo.php on line 711

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 194

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 195

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 196

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 197

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 198
keymaster is offline   Reply With Quote
Old June 22nd, 2005, 01:47   #2
deep_fire
 
deep_fire's Avatar
 
Join Date: May 2005
Posts: 11
deep_fire is on a distinguished road
Exclamation

if you use include or require in your page. don't use similar header in current page and included page. This is important header must be top of the codes. Don't use headers bottom of html codes.
__________________
www.thecoders.net
intelligence inside
deep_fire is offline   Reply With Quote
Old June 26th, 2005, 21:48   #3
passenger57
 
Join Date: Feb 2004
Posts: 174
passenger57 is on a distinguished road
Default me too

I have the same problem, could you elaborate on your response? I had this site up for a year and all the sudden I get these "Warning: Cannot modify header information - headers already sent by" messages above my site. I looked everywhere for an answer but no luck
passenger57 is offline   Reply With Quote
Old June 26th, 2005, 21:53   #4
mamboguy.com
 
Join Date: Nov 2003
Location: Australia
Posts: 2,931
mamboguy.com will become famous soon enough
Default

Check to see that there are not any spaces at the end of those files you may have tried to edit.
__________________
Brad Baker
www.rochen.com - Multiple Domain, Reseller and Dedicated Hosting Solutions.
www.joomlatutorials.com - Joomla Tutorials to get you started.
mamboguy.com is offline   Reply With Quote
Old June 26th, 2005, 22:07   #5
kenmcd
 
kenmcd's Avatar
 
Join Date: Apr 2005
Location: California
Posts: 726
kenmcd is on a distinguished road
Default

The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>).

Have you recently edited any files?
kenmcd is offline   Reply With Quote
Old June 27th, 2005, 00:06   #6
passenger57
 
Join Date: Feb 2004
Posts: 174
passenger57 is on a distinguished road
Default

Which file should I look at? I havent touched my site in several months.
Here is the errors I get on the top of every page:

Reputation: passenger57 is on a distinguished road
Join Date: Apr 2004

Default Warning: Cannot modify header information ERROR?
Hi there. I had a mambo site up for over a year, and now all the sudden I get these messages on the header of every page:

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/version.php:23) in /home/mysite/public_html/classes/mambo.php on line 143

Warning: Cannot modify header information - headers already sent by (output started at /home/rmysite/public_html/version.php:23) in /home/mysite/public_html/classes/mambo.php on line 448

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/version.php:23) in /home/mysite/public_html/index.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/version.php:23) in /home/mysite/public_html/index.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/version.php:23) in /home/mysite/public_html/index.php on line 169

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/version.php:23) in /home/mysite/public_html/index.php on line 170

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/version.php:23) in /home/mysite/public_html/index.php on line 171
passenger57 is offline   Reply With Quote
Old June 27th, 2005, 03:39   #7
thede
 
Join Date: Dec 2004
Posts: 2,572
thede is on a distinguished road
Default

Read your error message ;-)

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/version.php:23) in /home/mysite/public_html/classes/mambo.php on line 143
thede is offline   Reply With Quote
Old July 15th, 2005, 21:19   #8
Centurion
 
Join Date: Jul 2005
Posts: 2
Centurion is on a distinguished road
Default Sneaky people

Ok, just in case you didn't get it.......(it took me 20 minutes to figure it out) he means, as far as I can tell, to open the config.php file (I did it in Dreamweaver) and look VERY carefully at the end of the file. They ain't kiddin' about NO BLANK LINES AFTER THE CLOSING TAG. Jeez, it took me 20 minutes to realize that the ONE blank line after the closing tag was causing al of my problems. They're giving us sneaky answers in order to make us use our noggins'.
Centurion is offline   Reply With Quote
Old July 18th, 2005, 23:57   #9
djmikey
 
Join Date: Jun 2005
Posts: 85
djmikey is on a distinguished road
Default

ur site was hacked, see here

http://64.233.187.104/search?q=cache...ient=firefox-a

highlight to see the text
djmikey is offline   Reply With Quote
Old August 6th, 2005, 07:56   #10
dlgserver
 
Join Date: Apr 2005
Posts: 28
dlgserver is on a distinguished road
Default

Quote:
Originally Posted by kenmcd
The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>).

Have you recently edited any files?
What you said is exact! Really nice advice! Thanks a lot.
dlgserver is offline   Reply With Quote
Old May 22nd, 2006, 22:25   #11
brijix
 
Join Date: May 2006
Posts: 3
brijix is on a distinguished road
Default

$mosConfig_locale_debug = 0;
$mosConfig_locale_use_gettext = 0;

add these two lines in configuration.php

And smile,stupid bug.Actually wanted this not bug by header file space charecter
brijix is offline   Reply With Quote
Old May 22nd, 2006, 22:40   #12
brijix
 
Join Date: May 2006
Posts: 3
brijix is on a distinguished road
Default

2 lines in configuration.php
$mosConfig_locale_debug = 0;
$mosConfig_locale_use_gettext = 0;

fixes it all.
brijix is offline   Reply With Quote
Old June 17th, 2006, 10:50   #13
Skaurus
 
Join Date: Jun 2006
Posts: 1
Skaurus is on a distinguished road
Default

In my case it was because in my text editor (PSPad) by default option "Ident bytes in UTF-8 encoding" set to ON.
If all pages with errors begin with string like ">>п>i", then it the same case.
Skaurus is offline   Reply With Quote
Old June 27th, 2006, 12:07   #14
mavrike
 
Join Date: Jun 2006
Posts: 1
mavrike is on a distinguished road
Default A common problem, specially occurs when you do testing stuff

If you have PUT ANY echo"**********" statements inside your php file remove all of them , and everything will be fine.!!!

GOODLUCK,
MAVRIKE.
mavrike is offline   Reply With Quote
Old July 29th, 2006, 04:06   #15
swatantra
 
Join Date: Jul 2006
Posts: 3
swatantra is on a distinguished road
Default Cannot modify header information - headers already sent by

Hi
I have designed a php site which working fine in my local windows system.
but when i uploaded my site it not working properly, it is giving warning like

Cannot modify header information - headers already sent by :

Please help me
code as follows

<?php
session_start(); //clear session
if (isset($_SESSION["gUserid"]))
{
$_SESSION["gUserid"]=0;
$_SESSION["gUserName"]="";

}
elseif (isset($_SESSION["gAdminid"]))
{
$_SESSION["gAdminid"]=0;
$_SESSION["gAdminlogin"]="";
}
session_destroy();
header("location:index.php?logout=1");
?>

Swatantra


Quote:
Originally Posted by keymaster
Hi,

I was running 4.5.2, and everything was fine.

Suddenly yesterday, without any changes made by me, the warnings (Below) started coming out above the header of my home page, pushing everything down.

Also, my admin panel no longer lets me in. I see the adress bar change from administrator/index.php to index2.php then back to index.php, and I am back to the admin log-in screen.

On the bottom of the browser window I see some attempt to go to www.expdialer.com but nothing happens.

Can anyone help with advice?

Here are the warnings:
----------------------

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/includes/mambo.php on line 302

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/includes/mambo.php on line 711

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 194

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 195

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 196

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 197

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/globals.php:42) in /home/myaccount/public_html/index.php on line 198
swatantra is offline   Reply With Quote
Old July 30th, 2006, 11:14   #16
mel_akey
 
Join Date: Jul 2006
Location: NY
Posts: 41
mel_akey is on a distinguished road
Default

Quote:
Originally Posted by keymaster
Hi,

I was running 4.5.2, and everything was fine.

Suddenly yesterday, without any changes made by me, the warnings (Below) started coming out above the header of my home page, pushing everything down.

Also, my admin panel no longer lets me in.
This post is alittle scary to me... are these kind of errors typical? or do they happen as you learn the system? Suddenly warinings pop up on your website? That could potentially make visitors bounce right off your site!

I guess I'm just looking for some reasurance as I am just learning how to use mambo!
mel_akey is offline   Reply With Quote
Old July 30th, 2006, 12:41   #17
inagmamboAko
 
inagmamboAko's Avatar
 
Join Date: Jan 2006
Location: NY, USA
Posts: 1,289
inagmamboAko is on a distinguished road
Default

Scary indeed if you were using the Old Versions. Even with the new versions with patch and using some 3rd party components which lately the culprit of some attacks .

inagmamboAko is offline   Reply With Quote
Old July 31st, 2006, 14:20   #18
TracyZ
 
Join Date: Jul 2006
Location: Miami
Posts: 5
TracyZ is on a distinguished road
Default Warning: Cannot modify header information - headers already sent

KeyMaster,

Any suspicious component to try to connect to that dialer site ?

It is pretty scary...
__________________
-----------------
WireFan.Com Advanced Social Bookmarking
Real Estate News

Last edited by TracyZ : July 31st, 2006 at 14:30.
TracyZ is offline   Reply With Quote
Old January 31st, 2007, 16:47   #19
Developer
 
Join Date: Jan 2007
Posts: 2
Developer is on a distinguished road
Unhappy Please, Help meeeee

I am having the same problem as others do. I get this message,

Cannot modify header information - headers already sent by,

Whenever I try to redirect to another webpage Like header('Location: http:www.fragrancedepot.net');


Please, Please help. I did everything everyone suggested in this
thread but nothing seem to work.

Any help will be appreciated. Thanks guys you are the greatest.
Developer is offline   Reply With Quote
Old January 31st, 2007, 16:49   #20
Developer
 
Join Date: Jan 2007
Posts: 2
Developer is on a distinguished road
Default

Also, I don't see this problem with other hosting servers. What can i do?
__________________
Thank God its Friday :)http://www.fragrancedepot.net
http://www.blazing-info.com
Developer is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: Cannot modify header information advesty Installation Questions 21 July 13th, 2008 03:49
Warning: Cannot modify header information quizzer General Questions 1 December 2nd, 2005 10:21
Warning: Cannot modify header information....ARG!!! fixedearth General Questions 2 March 29th, 2005 09:47
Error : Warning: Cannot modify header information mechanicolet General Questions 1 February 11th, 2005 21:41
Error: Cannot modify header information fitch Installation Questions 4 February 18th, 2004 05:50


All times are GMT -7. The time now is 07:36.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.