| View previous topic :: View next topic |
| Author |
Message |
scoper Lance Corporal

Joined: 28 Aug 2003 Posts: 9
|
Posted: Wed Sep 24, 2003 12:31 pm Post subject: Cannot modify header information |
|
|
DOnt know whats wrong but all of a sudden i got this error message in my forum: Warning: Cannot modify header information - headers already sent by (output started at /home/undergrunn.com/language/lang-norwegian.php:265) in /home/undergrunn.com/modules/Forums/includes/sessions.php on line 200
Warning: Cannot modify header information - headers already sent by (output started at /home/undergrunn.com/language/lang-norwegian.php:265) in /home/undergrunn.com/modules/Forums/includes/sessions.php on line 201
I open session.php and check out the line:
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
Anybody know what might be wrong.
It has worked fine until now!!!
Please help.
Scoper |
|
| Back to top |
|
 |
|
|
 |
chatserv President


Joined: 19 Aug 2001 Posts: 3258
|
|
| Back to top |
|
 |
scoper Lance Corporal

Joined: 28 Aug 2003 Posts: 9
|
Posted: Fri Sep 26, 2003 5:39 pm Post subject: |
|
|
Nothing works..
first of all..
i have phpnuke 6.0
in my mainfile.php i only have ob_start("ob_gzhandler");
and not:
Near the start of mainfile.php find:
42 = phpversion();
if (42 >= '4.0.4pl1' && strstr(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if (42 > '4.0') {
change to:
42 = phpversion();
if (42 >= '4.0.4pl1')
{
ob_start('ob_gzhandler');
}else if (42 > '4.0') {
Second.. i dont have any .htaccess or php.ini file in my root directory..
what am i to do..
Nothing works..
Please help. |
|
| Back to top |
|
 |
chatserv President


Joined: 19 Aug 2001 Posts: 3258
|
Posted: Fri Sep 26, 2003 6:16 pm Post subject: |
|
|
There's no .htaccess file? good then create one, copy the following into a blank file:
| Code: | | PHP_FLAG output_buffering on |
save it as .htaccess and upload it to the same place where config.php & mainfile.php are located, that's all. |
|
| Back to top |
|
 |
scoper Lance Corporal

Joined: 28 Aug 2003 Posts: 9
|
Posted: Sun Sep 28, 2003 2:36 pm Post subject: |
|
|
dosent work!!!
what now
.. In my mainfile.php there is the line ob_start("ob_gzhandler");
and only that line.
SI there something i could add or do to make things work.!! |
|
| Back to top |
|
 |
Golinub Private

Joined: 06 May 2004 Posts: 1 Location: Quebec City, Canada
|
Posted: Mon May 10, 2004 10:53 am Post subject: |
|
|
| chatserv wrote: | There's no .htaccess file? good then create one, copy the following into a blank file:
| Code: | | PHP_FLAG output_buffering on |
save it as .htaccess and upload it to the same place where config.php & mainfile.php are located, that's all. |
That worked for me. Thanks a million time. |
|
| Back to top |
|
 |
pgapr_st Private

Joined: 25 May 2004 Posts: 1
|
Posted: Tue May 25, 2004 7:34 pm Post subject: .htaccess didn't work |
|
|
Adding an .htaccess caused my apache to stop responding. I used the php.ini fix from chatserv's message here: http://www.nukefixes.com/ftopic-36-0-days0-orderasc-.html instead and it worked perfectly.
Thanks chatserv |
|
| Back to top |
|
 |
IMC-Stewart Private

Joined: 27 Jan 2005 Posts: 1
|
Posted: Thu Jan 27, 2005 4:55 pm Post subject: Similiar Problem |
|
|
i am having a similar problem with the forums.
I have done all the fixes minus the php.ini cause I don't have access to that right now with no success. Wondering if anyone could help me
When I do the changes it then tells me that it expects '=' on line 27 of mainfile.php
I appreciate the help.
IMC-Stewart |
|
| Back to top |
|
 |
soudlous Private

Joined: 22 Mar 2005 Posts: 4
|
Posted: Tue Mar 22, 2005 3:53 pm Post subject: |
|
|
| I installed all the sec patch fixes and now the forums work without that warning. If anyone has tried this or it has helped anyone else. let me know. Thanx. |
|
| Back to top |
|
 |
almond_amber Private

Joined: 03 May 2005 Posts: 2
|
Posted: Tue May 03, 2005 7:48 pm Post subject: |
|
|
I'm using Window XP, IIS Server...
THANK you very much chatserv....
What I did is by change the setting in PHP.ini which state
output_buffering=On
Thank you very much...
 |
|
| Back to top |
|
 |
almond_amber Private

Joined: 03 May 2005 Posts: 2
|
Posted: Tue May 03, 2005 11:56 pm Post subject: |
|
|
Hi...
I want to make some correction....
after I made a changes to
Output_buffering =On
I able to upload a file.
However, when I want to download the uploading file, I cant open the file with the pop up alert remind me that some data can't be supported and need the Window Office installer to import the conversion type.
BUT, I still get the same error...
After a few research thru Internet, I realised that is not the case.
Please go to
http://www.php-mysql-tutorial.com/php-mysql-upload.php
NOt need to make any changes to php.ini...
Ensure no space before opening tag of PHP.
That's All
....  |
|
| Back to top |
|
 |
Nilloc Private

Joined: 16 Mar 2006 Posts: 1
|
Posted: Thu Mar 16, 2006 9:29 am Post subject: this works for more then just php nuke problems |
|
|
| chatserv wrote: | There's no .htaccess file? good then create one, copy the following into a blank file:
| Code: | | PHP_FLAG output_buffering on |
save it as .htaccess and upload it to the same place where config.php & mainfile.php are located, that's all. |
Having the same problem with a custom CMS hosted on Media Temple, any server that has output_buffering off will benifit from this fix.
Thanks for the help! |
|
| Back to top |
|
 |
FereMemory Private

Joined: 11 Oct 2009 Posts: 1
|
Posted: Sun Oct 11, 2009 7:35 am Post subject: |
|
|
| Thanks chatserv for you help. Now CMS works fine. |
|
| Back to top |
|
 |
alb123456 Private

Joined: 04 Dec 2009 Posts: 1
|
Posted: Fri Dec 04, 2009 2:01 am Post subject: |
|
|
| hello, i'm a new member, thank you |
|
| Back to top |
|
 |
|
|
 |
|