You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 49 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Warning: Cannot add header information - FIXES [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 3:09 pm Reply with quoteBack to top

If you are getting these kinds of errors (line numbers will vary)
Code:

Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/xxx.com/httpdocs/header.php:32) in /usr/local/psa/home/vhosts/xx.com/httpdocs/includes/sessions.php on line 251

try placing an .htaccess file in your nuke root directory that contains this line
Code:
PHP_FLAG output_buffering on
If you already have an .htaccess file then just add that line to it.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
rasputin
Sergeant
Sergeant


Joined: May 30, 2003
Posts: 88


PostPosted: Mon Jun 23, 2003 4:25 pm Reply with quoteBack to top

Just a small adition. I found this solution on phpbb forums. If you edit the file that complains about errors it will also work. In the abve case you will need to edit file sessions.php. More than likely line 251 would be a code attempting to set cookie. Add a "@" simbol in front of it and errors will go away. I have used this trick several times and it worked every time. Might be more time consuming than Raven's solution but if you don't have access to .htaccess file or your server doesn't support it - this will do the trick.
Find all posts by rasputinView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 23, 2003 4:36 pm Reply with quoteBack to top

True. The only drawback to this is that it also hides all errors concerning the call. So, if, for instance, the file/table became innaccessible for some other reason, you would have to deduce why as opposed to seeing a warning/error about the real problem.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Mykh
Nuke Soldier
Nuke Soldier


Joined: Feb 21, 2004
Posts: 14


PostPosted: Sun Feb 22, 2004 9:14 pm Reply with quoteBack to top

Maybe this affects it somehow, but I've never found anything wrong, I find that making the 2 lines in session.php (lines 249 and 250) into comments (by adding // at beginning of each line) it makes the errors go away, and seems to function normally.
Find all posts by MykhView user's profileSend private messageVisit poster's websiteAIM Address
dmike_88
Corporal
Corporal


Joined: Aug 05, 2004
Posts: 53


PostPosted: Mon Aug 09, 2004 6:50 am Reply with quoteBack to top

Raven, would your solution work even if I am using IIS and not apache?
Find all posts by dmike_88View user's profileSend private message
edogs
Lieutenant
Lieutenant


Joined: Sep 10, 2003
Posts: 172

Location: Russia

PostPosted: Mon Aug 09, 2004 7:28 am Reply with quoteBack to top

-More than enough good solution, were given by Wind from phpnuke.ru
1) In header.php after
$header = 1;
insert code
if (!ob_get_level()) ob_start();

2) Sometimes you need to add in footer.php
ob_flush();
flush();
Just before
die();
Find all posts by edogsView user's profileSend private messageVisit poster's websiteICQ Number
jkurlan
Nuke Cadet
Nuke Cadet


Joined: Aug 15, 2005
Posts: 2


PostPosted: Mon Aug 15, 2005 5:09 am Reply with quoteBack to top

Thank you very much! the solution under #1 fixed my issue immediately!

Thank you!
Find all posts by jkurlanView user's profileSend private message
Kalisto
Corporal
Corporal


Joined: Feb 04, 2004
Posts: 55


PostPosted: Sat Feb 11, 2006 10:18 am Reply with quoteBack to top

edogs solution worked for me with regard to forum problem.

for reference this was solved on a Sun Netra X1, running FreeBSD6.0-STABLE, running apache 1.3.x and php-4.4.x

Thanks a million to all contributors.

One day I too will be a powerful contributor, but for now I must be satisfied with stupidity. Cool

Kali
Find all posts by KalistoView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.314 Seconds - 268 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::