|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
![]() Join Date: Jan 2005
Posts: 39
![]() |
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 |
|
|
|
|
|
#2 |
![]() Join Date: May 2005
Posts: 11
![]() |
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. |
|
|
|
|
|
#3 |
![]() Join Date: Feb 2004
Posts: 174
![]() |
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
|
|
|
|
|
|
#4 |
![]() Join Date: Nov 2003
Location: Australia
Posts: 2,931
![]() |
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. |
|
|
|
|
|
#5 |
|
Join Date: Apr 2005
Location: California
Posts: 726
![]() |
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? |
|
|
|
|
|
#6 |
![]() Join Date: Feb 2004
Posts: 174
![]() |
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 |
|
|
|
|
|
#7 |
![]() Join Date: Dec 2004
Posts: 2,572
![]() |
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 |
|
|
|
|
|
#8 |
![]() Join Date: Jul 2005
Posts: 2
![]() |
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'.
![]() |
|
|
|
|
|
#9 |
![]() Join Date: Jun 2005
Posts: 85
![]() |
ur site was hacked, see here
http://64.233.187.104/search?q=cache...ient=firefox-a highlight to see the text |
|
|
|
|
|
#10 | |
![]() Join Date: Apr 2005
Posts: 28
![]() |
Quote:
![]() |
|
|
|
|
|
|
#11 |
![]() Join Date: May 2006
Posts: 3
![]() |
$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 |
|
|
|
|
|
#12 |
![]() Join Date: May 2006
Posts: 3
![]() |
2 lines in configuration.php
$mosConfig_locale_debug = 0; $mosConfig_locale_use_gettext = 0; fixes it all. |
|
|
|
|
|
#13 |
![]() Join Date: Jun 2006
Posts: 1
![]() |
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. |
|
|
|
|
|
#14 |
![]() Join Date: Jun 2006
Posts: 1
![]() |
If you have PUT ANY echo"**********" statements inside your php file remove all of them , and everything will be fine.!!!
GOODLUCK, MAVRIKE. |
|
|
|
|
|
#15 | |
![]() Join Date: Jul 2006
Posts: 3
![]() |
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:
|
|
|
|
|
|
|
#16 | |
![]() Join Date: Jul 2006
Location: NY
Posts: 41
![]() |
Quote:
I guess I'm just looking for some reasurance as I am just learning how to use mambo! |
|
|
|
|
|
|
#17 |
![]() Join Date: Jan 2006
Location: NY, USA
Posts: 1,289
![]() |
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 .
![]() |
|
|
|
|
|
#18 |
![]() Join Date: Jul 2006
Location: Miami
Posts: 5
![]() |
KeyMaster,
Any suspicious component to try to connect to that dialer site ? It is pretty scary... ![]() Last edited by TracyZ : July 31st, 2006 at 14:30. |
|
|
|
|
|
#19 |
![]() Join Date: Jan 2007
Posts: 2
![]() |
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 thisthread but nothing seem to work. Any help will be appreciated. Thanks guys you are the greatest. ![]() |
|
|
|
|
|
#20 |
![]() Join Date: Jan 2007
Posts: 2
![]() |
Also, I don't see this problem with other hosting servers. What can i do?
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |