| Author |
Message |
rayle
Nuke Cadet


Joined: Jun 04, 2003
Posts: 1
|
Posted:
Wed Jun 04, 2003 9:01 am |
  |
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. |
|
|
   |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Wed Jun 04, 2003 9:06 am |
  |
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 |
|
    |
 |
slim
Nuke Cadet


Joined: Jun 24, 2003
Posts: 5
|
Posted:
Tue Jun 24, 2003 6:18 pm |
  |
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') { |
|
|
   |
 |
eclipsegsxr
Nuke Cadet


Joined: Jun 28, 2003
Posts: 4
|
Posted:
Sat Jun 28, 2003 6:21 pm |
  |
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.. |
|
|
   |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Sat Jun 28, 2003 7:01 pm |
  |
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 |
|
    |
 |
eclipsegsxr
Nuke Cadet


Joined: Jun 28, 2003
Posts: 4
|
Posted:
Sun Jun 29, 2003 8:25 pm |
  |
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.. |
|
|
   |
 |
mates
Nuke Cadet


Joined: Apr 16, 2003
Posts: 3
|
Posted:
Tue Aug 12, 2003 10:10 am |
  |
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 |
|
|
   |
 |
pax
Nuke Cadet


Joined: Aug 27, 2003
Posts: 2
|
Posted:
Wed Aug 27, 2003 5:04 pm |
  |
|
   |
 |
pax
Nuke Cadet


Joined: Aug 27, 2003
Posts: 2
|
Posted:
Wed Aug 27, 2003 5:08 pm |
  |
|
   |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Wed Aug 27, 2003 9:26 pm |
  |
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 |
|
    |
 |
mates
Nuke Cadet


Joined: Apr 16, 2003
Posts: 3
|
Posted:
Thu Aug 28, 2003 4:33 am |
  |
My provider solved this by setting output_buffering=1 in php.ini.
Martin |
|
|
   |
 |
bigdaddyebk
Sergeant


Joined: Oct 14, 2003
Posts: 94
Location: San Diego, CA
|
Posted:
Tue Oct 14, 2003 1:15 pm |
  |
U R Da Man "chatserv"!!
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  |
Last edited by bigdaddyebk on Mon Nov 03, 2003 10:10 pm; edited 1 time in total |
|
       |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Tue Oct 14, 2003 1:25 pm |
  |
| bigdaddyebk wrote: |
"Windows" for Solitaire  |
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 |
|
    |
 |
bigdaddyebk
Sergeant


Joined: Oct 14, 2003
Posts: 94
Location: San Diego, CA
|
Posted:
Fri Oct 17, 2003 12:27 am |
  |
| chatserv wrote: |
| bigdaddyebk wrote: |
"Windows" for Solitaire  |
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!! hehehehehe
HEY...I like to break things too Hence, the reason I signed up in this forum!!  |
_________________ "Unix" for Longevity
"AS/400" for Nostalgia
"Linux" for Productivity
"MAC" for Multimedia
"Windows" for Solitaire
Do I need a computer to use your software? |
|
       |
 |
OMICRON
Nuke Soldier


Joined: Jul 04, 2003
Posts: 12
Location: Slovenia, Jesenice, KB
|
Posted:
Sat Oct 18, 2003 6:35 am |
  |
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  |
_________________ In the world without walls and fences, who needs Windows and Gates?
//OMICRON.<sup>cc</sup> |
|
     |
 |
|
|