Nuke Toolbar

          
Quick Links 
 [Home Page ][ Category Listings ][ Forum Listings][ Forum FAQs]
[ HomeDNS - Domains ]  [ Nuke Resources ]  [ Nuke Skins and Themes ]  [ Nuke Sites Link Directory ]
[ LearningLinux.com ]  [ Nuke Fixes ]
[ NukeZone Hosting ]  [ Domain Name Database ]
Nuke Forums Forum Index

Nuke Sites Link Directory


Cannot modify header information

 
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke General Help
View previous topic :: View next topic  
Author Message
scoper
Lance Corporal
Lance Corporal


Joined: 28 Aug 2003
Posts: 9


PostPosted: Wed Sep 24, 2003 12:31 pm    Post subject: Cannot modify header information Reply with quote

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
View user's profile Send private message
chatserv
President
President


Joined: 19 Aug 2001
Posts: 3258


PostPosted: Wed Sep 24, 2003 1:22 pm    Post subject: Reply with quote

http://www.nukefixes.com/postt36.html
Back to top
View user's profile Send private message Visit poster's website
scoper
Lance Corporal
Lance Corporal


Joined: 28 Aug 2003
Posts: 9


PostPosted: Fri Sep 26, 2003 5:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
chatserv
President
President


Joined: 19 Aug 2001
Posts: 3258


PostPosted: Fri Sep 26, 2003 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
scoper
Lance Corporal
Lance Corporal


Joined: 28 Aug 2003
Posts: 9


PostPosted: Sun Sep 28, 2003 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Golinub
Private
Private


Joined: 06 May 2004
Posts: 1
Location: Quebec City, Canada

PostPosted: Mon May 10, 2004 10:53 am    Post subject: Reply with quote

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
View user's profile Send private message
pgapr_st
Private
Private


Joined: 25 May 2004
Posts: 1


PostPosted: Tue May 25, 2004 7:34 pm    Post subject: .htaccess didn't work Reply with quote

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
View user's profile Send private message
IMC-Stewart
Private
Private


Joined: 27 Jan 2005
Posts: 1


PostPosted: Thu Jan 27, 2005 4:55 pm    Post subject: Similiar Problem Reply with quote

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
View user's profile Send private message
soudlous
Private
Private


Joined: 22 Mar 2005
Posts: 4


PostPosted: Tue Mar 22, 2005 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
almond_amber
Private
Private


Joined: 03 May 2005
Posts: 2


PostPosted: Tue May 03, 2005 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
almond_amber
Private
Private


Joined: 03 May 2005
Posts: 2


PostPosted: Tue May 03, 2005 11:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nilloc
Private
Private


Joined: 16 Mar 2006
Posts: 1


PostPosted: Thu Mar 16, 2006 9:29 am    Post subject: this works for more then just php nuke problems Reply with quote

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
View user's profile Send private message
FereMemory
Private
Private


Joined: 11 Oct 2009
Posts: 1


PostPosted: Sun Oct 11, 2009 7:35 am    Post subject: Reply with quote

Thanks chatserv for you help. Now CMS works fine.
Back to top
View user's profile Send private message
alb123456
Private
Private


Joined: 04 Dec 2009
Posts: 1


PostPosted: Fri Dec 04, 2009 2:01 am    Post subject: Reply with quote

hello, i'm a new member, thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke General Help All times are GMT - 8 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, 2005 phpBB Group




Forum Options
Main Menu
index.phpForums Index
    - Collaped View
    + Expanded View
FAQFAQ
SearchSearch
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesLog in to check your private messages
Log inLog in

Visitor Options
 
Subscribe
Unsubscribe


Keep informed of updates, bug fixes, software releases, news and more!
Installation or Upgrade Services for phpNuke or PostNuke? Require site maintenance, addons, modules or custom themes? Send private message or e-mail for rates and availablity.

Quick Links
  Domain Names
  Firewall Forums
  Joke Crazy
  Learning Linux
  Find your IP Fast!
  Purchase WinRAR

Trusted Nuke Sites
  NukeZone Hosting
  CMS Focus
  NukeFixes.com
  NukeResources.com
  NukeSkins.com
  NukeSites.com
  PHPNuke.org

Sponsor Links


NukeZone Hosting