Welcome Guest!   Please Login or Register
Subscribe Today

You are not subscriber of DaDaNuke | Making PHP-Nuke Better!. You can subscribe from here now!

Sponsored Links




Search




Site Navigation

· Home
· About Us
· Advertise With Us
· Club
· CVS
· Downloads
· Feedback
· Forums
· Gallery
· Groups
· Journal
· Private Messages
· Search
· Stories Archive
· Submit News
· Top 10
· Topics
· Web Links
· Your Account

Survey

I Want This Addon:

SEO
Gaming
Commerce
Database
Security



Results
Polls

Votes 562

Advertisers





Who's Online

There are currently, 27 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

Total Hits

We received
3867150
page views since September 2005




DaDaNuke :: View topic - Cannot modify header information
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

Cannot modify header information

 
Post new topic   Reply to topic    DaDaNuke Forum Index -> BBtoNuke
View previous topic :: View next topic  
Author Message
dadaBIT
General Manager
General Manager


Joined: Jun 23, 2005
Posts: 582
Location: United States

PostPosted: Wed Apr 25, 2007 9:44 am    Post subject: Cannot modify header information Reply with quote

Hi, not certain if this is a core issue or not. Have been receiving this message via 'root' error log since host did server upgrade last month.

Code:

[23-Apr-2007 21:54:27] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/header.php:32) in /home/xxxxxx/public_html/modules/Forums/includes/sessions.php on line 253
[23-Apr-2007 21:54:27] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/header.php:32) in /home/xxxxxx/public_html/modules/Forums/includes/sessions.php on line 254
[23-Apr-2007 21:54:27] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/header.php:32) in /home/xxxxxx/public_html/modules/Forums/includes/page_header.php on line 489
[23-Apr-2007 21:54:27] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/header.php:32) in /home/xxxxxx/public_html/modules/Forums/includes/page_header.php on line 491
[23-Apr-2007 21:54:27] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/header.php:32) in /home/xxxxxx/public_html/modules/Forums/includes/page_header.php on line 492


Thanks!

-Kev
_________________

Visit the DaDaNuke Wish List


Last edited by dadaBIT on Thu Apr 26, 2007 1:28 pm; edited 3 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 219
Location: Miami, FL

PostPosted: Wed Apr 25, 2007 7:56 pm    Post subject: Reply with quote

I found this once in the internet and help me:

http://www.karakas-online.de/forum/viewtopic.php?t=1633

also other time happen again and in that case was a problem in the hosting account. The hosting providers where doing an update to php in the server where I had my site.

Enjoy. Wink
_________________
"In the computer business you’re either a one or a zero and I am determined never to be zero."
Back to top
View user's profile Send private message Visit poster's website
dadaBIT
General Manager
General Manager


Joined: Jun 23, 2005
Posts: 582
Location: United States

PostPosted: Thu Apr 26, 2007 5:46 am    Post subject: Reply with quote

This is header.php from current release.

Code:

function head() {
   global $slogan, $sitename, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
   $ThemeSel = get_theme();
   include_once("themes/$ThemeSel/theme.php");
   echo "<DOCTYPE>\n";
   echo "<html>\n";
   echo "<head>\n";
   echo "<title>$sitename $pagetitle</title>\n";
   include("includes/meta.php");
   include("includes/javascript.php");

   if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
      echo "<link>\n";
   }
   echo "<link>\n";
   echo "<LINK>\n\n\n";
   if (file_exists("includes/custom_files/custom_head.php")) {
      include_once("includes/custom_files/custom_head.php");
   }
   echo "\n\n\n</head>\n\n";
   if (file_exists("includes/custom_files/custom_header.php")) {
      include_once("includes/custom_files/custom_header.php");
   }
    global $ab_config;
    if($ab_config['site_switch'] == 1 && is_admin($_COOKIE['admin'])) {
      echo "<center><img></center><br>\n";
    }
    if($ab_config['disable_switch'] == 1 && is_admin($_COOKIE['admin'])) {
      echo "<center><img></center><br>\n";
    }
   themeheader();
}

online();
head();
include("includes/counter.php");
if(defined('HOME_FILE')) {
   message_box();
   blocks("Center");
}

?>


Now, keep in mind this is BBtoNuke. Quite possible not patched properly. This is line 253 from sessions.php

Code:

   setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
   setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);


Your thoughts?

-Kev
_________________

Visit the DaDaNuke Wish List
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 219
Location: Miami, FL

PostPosted: Thu Apr 26, 2007 8:27 am    Post subject: Reply with quote

I know by experience that programmers some times use the longest and hardest solution to the problem when they can also use the easy and simple. Before checking the code to try duplicating your error tell me about this:

Both Charserv and Chris in similar situation ask for the following possible problems:

Quote:
1. Disable Gzip compression for the boards


Quote:
2. Create an .htaccess file with this code: PHP_FLAG output_buffering on


3. If in your mainfile you have something like this:

Quote:
$phpver = phpversion();
if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {


Replace it for this:

Quote:
$phpver = phpversion();
if (42 >= '4.0.4pl1')
{
ob_start('ob_gzhandler');
}else if (42 > '4.0') {


Let me know,
_________________
"In the computer business you’re either a one or a zero and I am determined never to be zero."
Back to top
View user's profile Send private message Visit poster's website
manik
dadaSupport
dadaSupport


Joined: Oct 26, 2005
Posts: 131
Location: Maryland

PostPosted: Thu Jul 05, 2007 5:29 am    Post subject: Reply with quote

That usually happens when adding mods and an older mod will make a call to the header when it has already been asked for earlier in the process, you can simply blank one of the statement out and it will work fine.
_________________
When you try and fail it hurts but when you try and quit you die.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DaDaNuke Forum Index -> BBtoNuke All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB © 2001 phpBB Group Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Theme designed by Western Studios



Terms of Use | Privacy Policy © 1996-2007, DaDaNuke

Listed on FeedBurner

PHP-Nuke Copyright © 2006 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.

Theme Designed by Western Studios