| Author |
Message |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 3:09 pm |
  |
If you are getting these kinds of errors (line numbers will vary)
| Code: |
Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/xxx.com/httpdocs/header.php:32) in /usr/local/psa/home/vhosts/xx.com/httpdocs/includes/sessions.php on line 251 |
try placing an .htaccess file in your nuke root directory that contains this line
| Code: |
| PHP_FLAG output_buffering on |
If you already have an .htaccess file then just add that line to it. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
rasputin
Sergeant


Joined: May 30, 2003
Posts: 88
|
Posted:
Mon Jun 23, 2003 4:25 pm |
  |
Just a small adition. I found this solution on phpbb forums. If you edit the file that complains about errors it will also work. In the abve case you will need to edit file sessions.php. More than likely line 251 would be a code attempting to set cookie. Add a "@" simbol in front of it and errors will go away. I have used this trick several times and it worked every time. Might be more time consuming than Raven's solution but if you don't have access to .htaccess file or your server doesn't support it - this will do the trick. |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Mon Jun 23, 2003 4:36 pm |
  |
True. The only drawback to this is that it also hides all errors concerning the call. So, if, for instance, the file/table became innaccessible for some other reason, you would have to deduce why as opposed to seeing a warning/error about the real problem. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Mykh
Nuke Soldier


Joined: Feb 21, 2004
Posts: 14
|
Posted:
Sun Feb 22, 2004 9:14 pm |
  |
Maybe this affects it somehow, but I've never found anything wrong, I find that making the 2 lines in session.php (lines 249 and 250) into comments (by adding // at beginning of each line) it makes the errors go away, and seems to function normally. |
|
|
     |
 |
dmike_88
Corporal


Joined: Aug 05, 2004
Posts: 53
|
Posted:
Mon Aug 09, 2004 6:50 am |
  |
Raven, would your solution work even if I am using IIS and not apache? |
|
|
   |
 |
edogs
Lieutenant


Joined: Sep 10, 2003
Posts: 172
Location: Russia
|
Posted:
Mon Aug 09, 2004 7:28 am |
  |
-More than enough good solution, were given by Wind from phpnuke.ru
1) In header.php after
$header = 1;
insert code
if (!ob_get_level()) ob_start();
2) Sometimes you need to add in footer.php
ob_flush();
flush();
Just before
die(); |
|
|
     |
 |
jkurlan
Nuke Cadet


Joined: Aug 15, 2005
Posts: 2
|
Posted:
Mon Aug 15, 2005 5:09 am |
  |
Thank you very much! the solution under #1 fixed my issue immediately!
Thank you! |
|
|
   |
 |
Kalisto
Corporal


Joined: Feb 04, 2004
Posts: 55
|
Posted:
Sat Feb 11, 2006 10:18 am |
  |
edogs solution worked for me with regard to forum problem.
for reference this was solved on a Sun Netra X1, running FreeBSD6.0-STABLE, running apache 1.3.x and php-4.4.x
Thanks a million to all contributors.
One day I too will be a powerful contributor, but for now I must be satisfied with stupidity.
Kali |
|
|
    |
 |
|
|