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, 53 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - 'header already sent' in forum [ ]
 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
rayle
Nuke Cadet
Nuke Cadet


Joined: Jun 04, 2003
Posts: 1


PostPosted: Wed Jun 04, 2003 9:01 am Reply with quoteBack to top

I'm recently installed the PhpNuke 6.5 on linux with apache2.0.45 and php4.3.2RC.<br>
When I first browse the Forum section, it showed the warning:<br>


Warning: Cannot modify header information - headers already sent by (output started at /data/projectweb/header.php:32) in /data/projectweb/includes/sessions.php on line 222<br>

Warning: Cannot modify header information - headers already sent by (output started at /data/projectweb/header.php:32) in /data/projectweb/includes/sessions.php on line 223


Anyway, I finally find a post here and solve it by modifying the mainfile.php as mentioned by chatserv.<br>

However after I upgraded the apache to 2.0.46 and php to 4.3.2 today, this problem occurs again and now I don't know how to solve it. <br><br>

Does anyone of you get an idea on solving it?

Thank you very much.
Find all posts by rayleView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Wed Jun 04, 2003 9:06 am Reply with quoteBack to top

Two options:

Quote:
Near the start of mainfile.php find:

$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') {


change to:

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


and:

add the following line to a .htaccess file placed in your root Nuke dir.
Code:
PHP_FLAG output_buffering on


or if you have access to your php.ini, set:
Code:
output_buffering=on;

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
slim
Nuke Cadet
Nuke Cadet


Joined: Jun 24, 2003
Posts: 5


PostPosted: Tue Jun 24, 2003 6:18 pm Reply with quoteBack to top

Thank you very much "chatserv"..I have solved the problem......

With this

Near the start of mainfile.php find:

$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') {


change to:

$phpver = phpversion();
if ($phpver >= '4.0.4pl1')
{
ob_start('ob_gzhandler');
}else if ($phpver > '4.0') {
Find all posts by slimView user's profileSend private message
eclipsegsxr
Nuke Cadet
Nuke Cadet


Joined: Jun 28, 2003
Posts: 4


PostPosted: Sat Jun 28, 2003 6:21 pm Reply with quoteBack to top

ok i hope this gets answered her..I didn't look to see how old this post was..Anyhow i get the following error in my forums area of my site..

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /data/members/free/tripod/uk/e/c/l/eclipsegsxr/htdocs/includes/page_header.php on line 98

my question is would the above post fix my problem also or do i need to look at something else?

also when i try to create New Area in the Forums Nothing Shows up..Could the above mentioned warning be causing my forums to not works?

Any help is appreciated..
Find all posts by eclipsegsxrView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sat Jun 28, 2003 7:01 pm Reply with quoteBack to top

Try the second workaround suggested in my post

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
eclipsegsxr
Nuke Cadet
Nuke Cadet


Joined: Jun 28, 2003
Posts: 4


PostPosted: Sun Jun 29, 2003 8:25 pm Reply with quoteBack to top

ok ..i got it fixed last night all i did was turn off gzip in my forum and the warning is now gone.Also another question i have is how do i Get the neat looking site vistors w/ login working on my site..i downloaded one from nukescripts.net i believe was the site..but i can't seem to get it to work.Any ideas on this one..I realize this isn't the place for this one..
Find all posts by eclipsegsxrView user's profileSend private message
mates
Nuke Cadet
Nuke Cadet


Joined: Apr 16, 2003
Posts: 3


PostPosted: Tue Aug 12, 2003 10:10 am Reply with quoteBack to top

Hello,

when I add PHP_FLAG output_buffering on to my .htaccess file I get:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

phpinfo on gremiumkr.cuni.cz/info.php

.htaccess look like:

Code:
DefaultCharset iso-8859-2
PHP_FLAG output_buffering On


How to solve this?
Martin
Find all posts by matesView user's profileSend private message
pax
Nuke Cadet
Nuke Cadet


Joined: Aug 27, 2003
Posts: 2


PostPosted: Wed Aug 27, 2003 5:04 pm Reply with quoteBack to top

I tried everything on this page and yet it still DOES NOT WORK i really don't know what the problem it
http://clantx.t35.com:8000/modules.php?name=Forums
http://clantx.t35.com:8000/modules.php?name=Private_Messages
those links are the ones with problems and i really don't know why.
Find all posts by paxView user's profileSend private message
pax
Nuke Cadet
Nuke Cadet


Joined: Aug 27, 2003
Posts: 2


PostPosted: Wed Aug 27, 2003 5:08 pm Reply with quoteBack to top

I also have the .htaccess file uploaded with what has to be there and i changed my mainfile.php:

http://clantx.t35.com:8000/.htaccess
http://clantx.t35.com:8000/mainfile.php
Find all posts by paxView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Wed Aug 27, 2003 9:26 pm Reply with quoteBack to top

Try removing DefaultCharset iso-8859-2 from the htaccess file, also check if your server allows htaccess files, some don't.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
mates
Nuke Cadet
Nuke Cadet


Joined: Apr 16, 2003
Posts: 3


PostPosted: Thu Aug 28, 2003 4:33 am Reply with quoteBack to top

My provider solved this by setting output_buffering=1 in php.ini.
Martin
Find all posts by matesView user's profileSend private message
bigdaddyebk
Sergeant
Sergeant


Joined: Oct 14, 2003
Posts: 94

Location: San Diego, CA

PostPosted: Tue Oct 14, 2003 1:15 pm Reply with quoteBack to top

Very Happy U R Da Man "chatserv"!! Very Happy

Your Post on June 04, 2003 helped me out SERIOUSLY!! I was about to loose my mind trying to figure out how to get rid of the "Warning: Cannot modify header information" errors .


chatserv wrote:
Two options:

Quote:
Near the start of mainfile.php find:

$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') {


change to:

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


and:

add the following line to a .htaccess file placed in your root Nuke dir.
Code:
PHP_FLAG output_buffering on


or if you have access to your php.ini, set:
Code:
output_buffering=on;


I'm very new at trying to be my own server admin running the Battlefield 1942 game for my co-workers. I have my own server co-located at work.

Installed:
FreeBSD 5.1
Apache 2.0.47
PHP4.3.3
MySQL4

Where did you get started learning to program PHP? What books?

BigDaddyEBK

"Unix" for Longevity
"AS/400" for Nostalgia
"Linux" for Productivity
"MAC" for Multimedia
"Windows" for Solitaire Twisted Evil


Last edited by bigdaddyebk on Mon Nov 03, 2003 10:10 pm; edited 1 time in total
Find all posts by bigdaddyebkView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerICQ Number
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Oct 14, 2003 1:25 pm Reply with quoteBack to top

bigdaddyebk wrote:
"Windows" for Solitaire Twisted Evil

Ah come on let's be fair, there's a nice Virtual Pinball game one can also play.

To be honest i've read no books, at least none relating to php, i learned by reading through forums and "breaking stuff to see how it works"

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
bigdaddyebk
Sergeant
Sergeant


Joined: Oct 14, 2003
Posts: 94

Location: San Diego, CA

PostPosted: Fri Oct 17, 2003 12:27 am Reply with quoteBack to top

chatserv wrote:

bigdaddyebk wrote:
"Windows" for Solitaire Twisted Evil

Ah come on let's be fair, there's a nice Virtual Pinball game one can also play.


I've played that game too, but it crashed the OS & my activation expired so m1cr0$of7 wants to prosecute me because of a DMCA violation since I don't want to pay them to renew it!! Rolling Eyes hehehehehe


HEY...I like to break things too Hence, the reason I signed up in this forum!! Cool

_________________
"Unix" for Longevity
"AS/400" for Nostalgia
"Linux" for Productivity
"MAC" for Multimedia
"Windows" for Solitaire Twisted Evil

Do I need a computer to use your software?
Find all posts by bigdaddyebkView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerICQ Number
OMICRON
Nuke Soldier
Nuke Soldier


Joined: Jul 04, 2003
Posts: 12

Location: Slovenia, Jesenice, KB

PostPosted: Sat Oct 18, 2003 6:35 am Reply with quoteBack to top

Now this is weard! Yesterday I have done every thing written above and it didn't work. But today when I opened my forums thingy no error have occured.

Keep up the good work Wink

_________________
In the world without walls and fences, who needs Windows and Gates?
//OMICRON.<sup>cc</sup>
Find all posts by OMICRONView user's profileSend private messageVisit poster's websiteICQ Number
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.264 Seconds - 241 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::