glow Posted February 15, 2008 Share Posted February 15, 2008 dunno how to get rid of this error. can anyone help me ------------------------ Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglo/public_html/includes/joomla.php on line 1418 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglow/public_html/index.php on line 251 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglow/public_html/includes/joomla.php:12462) in /home/duneglow/public_html/index.php on line 252 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglow/public_html/index.php on line 253 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglow/public_html/index.php on line 254 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglow/public_html/index.php on line 255 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglo/public_html/templates/ja_drimia/ja_templatetools.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglo/public_html/templates/ja_drimia/ja_templatetools.php on line 26 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglo/public_html/templates/ja_drimia/ja_templatetools.php on line 27 Warning: Cannot modify header information - headers already sent by (output started at /home/duneglo/public_html/includes/joomla.php:12462) in /home/duneglo/public_html/templates/ja_drimia/ja_templatetools.php on line 28 Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/ Share on other sites More sharing options...
Caesar Posted February 15, 2008 Share Posted February 15, 2008 We'll need to see your code. Basically, you can't output anything before your header. Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467295 Share on other sites More sharing options...
glow Posted February 15, 2008 Author Share Posted February 15, 2008 i'm having problems posting the code. it wont let me post the index code Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467298 Share on other sites More sharing options...
glow Posted February 15, 2008 Author Share Posted February 15, 2008 this is the code from the index php $_MOS_OPTION['buffer'] = ob_get_contents(); ob_end_clean(); initGzip(); header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); // display the offline alert if an admin is logged in if (defined( '_ADMIN_OFFLINE' )) { include( $mosConfig_absolute_path .'/offlinebar.php' ); and this is the code from the ja_templatetools php $ja_font_size = $_COOKIE['FontSize']; } }else{ $exp = time() + 60*60*24*355; setcookie ('JATheme', $ja_template_name, $exp, '/'); setcookie ('ColorCSS', $ja_color_default, $exp, '/'); setcookie ('ScreenType', $ja_width_default, $exp, '/'); setcookie ('FontSize', $ja_font_size_default, $exp, '/'); } if (!is_file("$ja_template_absolute_path/css/colors/$ja_color.css")) $ja_color = $ja_color_default; Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467310 Share on other sites More sharing options...
glow Posted February 15, 2008 Author Share Posted February 15, 2008 these are the trouble lines , i coould not post the whole code this forum wont let me .it thinks I'm trying to access its index files. Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467320 Share on other sites More sharing options...
glow Posted February 15, 2008 Author Share Posted February 15, 2008 30 views..no one can help me? Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467352 Share on other sites More sharing options...
darkfreaks Posted February 15, 2008 Share Posted February 15, 2008 Read the header thread Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467387 Share on other sites More sharing options...
glow Posted February 15, 2008 Author Share Posted February 15, 2008 thank you I'm afraid I already have and being that I'm very new to php it makes little sense to me. I need it spoon fed I'm afraid can you help me with this error? Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467396 Share on other sites More sharing options...
haku Posted February 15, 2008 Share Posted February 15, 2008 Your problem lies in joomla.php, which I'm guessing is where the function initGzip() is located. It is outputting some text or html to the browser, which is causing your error. Try moving initGzip() down below all your header functions, and see if that works. Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467418 Share on other sites More sharing options...
glow Posted February 15, 2008 Author Share Posted February 15, 2008 thank you haku. I moved it just bellow the headers but that did not work. Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467425 Share on other sites More sharing options...
glow Posted February 15, 2008 Author Share Posted February 15, 2008 i got it working . thank you Quote Link to comment https://forums.phpfreaks.com/topic/91180-getting-this-error/#findComment-467441 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.