#1  
Old 06-05-2006, 07:31 PM
dojo's Avatar
dojo dojo is offline
dojo
Site AdminWtricks GURU
 
Join Date: Sep 2008
Location: Romania
Age: 31
Posts: 5,667
Rep Power: 0
dojo is an unknown quantity at this point
Default Cannot modify header information - phpNuke error

Sometimes you install the Nuke CMS and when you try to open the forums you get a very ugly stream of errors. The forums are functional, but still, you don't want all people to know you've got such nasty code problems, not to mention it can lead to security problems since the code displays much of your "sensitive" information.

Here is the code and how we fix it.

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/sessions.php on line 222

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/sessions.php on line 223

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/page_header.php on line 488

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/page_header.php on line 494

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/page_header.php on line 495

------

And now the step by step errors and solution.

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/sessions.php on line 222

sessions.php on line 222 - go to sessions.php and open it with your editor. EXACTLY at the line 222 just put // in front of the line =>
// and the rest of the code. That turns it in a comment.

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/sessions.php on line 223

line 223 in sessions.php same thing: // in front of the code.

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/page_header.php on line 488


page_header.php on line 488 put // in front

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/page_header.php on line 494

page_header.php on line 488 same...

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/sitename/themes/DeepBlue/theme.php:85) in /usr/local/apache2/htdocs/sitename/includes/pag[color=red]e_header.php on line 495
Same ...

After you do so, backup the previous files (so that you coud change them if you did something wrong) and upload the changed files in their place.

When you post on the forums you'll get something similar, just go and add // in front of the code.

Some people use @ in front of the lines with problems, so you could do this too. We can tell you // has worked for us, since we haven't tried the other way.

Hope that helped.
__________________
Don't forget to read our rules!
The Ad Broker - sell / buy ads. FREE listings

Last edited by dojo; 08-24-2006 at 01:04 PM.
Reply With Quote
  #2  
Old 03-15-2010, 11:48 PM
ezrashem's Avatar
ezrashem ezrashem is offline
Beginner designer
 
Join Date: Jan 2010
Posts: 198
Rep Power: 0
ezrashem is an unknown quantity at this point
Default

I also experience that one Paolo and until now I wonder why it happens.
Maybe there are something missing.
__________________
real estate | houses |
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +1. The time now is 08:03 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
Theme redesigned by Dojo Design. © 2005, 2006 Dojo Design & Wtricks.com