| Author |
Message |
Shile
Nuke Soldier


Joined: Jul 01, 2003
Posts: 18
|
Posted:
Wed Oct 01, 2003 10:53 am |
  |
I have instaled Nuke 6.5 on my computer (server and everything) and upload it (plain upload not a web instalation) on server.
But there is a problem...when I open a index.php I get error in header what says:
Warning: Cannot modify header information - headers already sent by (output started at /home/php-nuke/public_html/mainfile.php:2) in /home/php-nuke/public_html/mainfile.php on line 166
What is a problem?
Sometimes I get error in other lines...157, 177 and cetera.
Warning: Cannot modify header information - headers already sent by (output started at /home/php-nuke/public_html/mainfile.php:2) in /home/php-nuke/public_html/modules/Your_Account/index.php on line 766 |
|
|
   |
 |
Admin32
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28
Location: Greece
|
Posted:
Wed Oct 01, 2003 11:35 am |
  |
Shile, I've got the same problem but haven't figured it out yet. |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Oct 01, 2003 11:50 am |
  |
If you have access to php.ini, set
output_buffering = On
and then restart your server
otherwise add this line to a .htaccess file
PHP_FLAG output_buffering On
and place it in your web nuke root. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Admin32
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28
Location: Greece
|
Posted:
Wed Oct 01, 2003 12:35 pm |
  |
Wow... I edited the .htaccess file since I haven't got access to the php.ini file and it just gave me a nice 500 Internal Server error!
My error logs reported the following:
[Wed Oct 1 13:40:11 2003] [alert] [client 62.253.64.9] /www/f/firewall/htdocs/.htaccess: Invalid command 'PHP_FLAG', perhaps mis-spelled or defined by a module not included in the server configuration
Any ideas ?
After checking the php version my hosting company is running .. i found its 4.3.1, perhaps it dosen't understand this flag and needs to change slightly ?
Here is the relevant php.ini section from analyzer.php:
[output_buffering] => Array
(
[global_value] => 1
[local_value] => 1
[access] => 6
) |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Oct 01, 2003 1:04 pm |
  |
I should have told you to check to see if OB was already on. Sorry
The server error means they do not allow you to use .htaccess. Just delete it. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Admin32
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28
Location: Greece
|
Posted:
Wed Oct 01, 2003 1:13 pm |
  |
My hosting company does allow me to use the .htaccess file Raven.
I've been using it for over a year to specify the error file when someone hits an invalid page.
Any other ideas ? |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Oct 01, 2003 1:17 pm |
  |
But they are restricting your use of it. error file overrides are Apache related. They are not allowing overrides to PHP variables through Apache. In any event, OB is already on so that is not the resolution to your problem. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Admin32
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28
Location: Greece
|
Posted:
Thu Oct 02, 2003 2:35 am |
  |
If its any help, I have noticed that the errors will occur only when private messages or posting to threads that contain old users, and by this I mean users that existed in the forums before I imported them to php-nuke's phpbb. |
|
|
    |
 |
w3irdo
Nuke Cadet


Joined: Feb 21, 2004
Posts: 1
|
Posted:
Sat Feb 21, 2004 11:20 am |
  |
but what do i do if my hosting company doesn't allow .htaccess files ???
is there anything i can do?
i get an error when trying to acces the forum. it says:
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting/webhelp/includes/javascript.php:61) in /home/hosting/webhelp/includes/sessions.php on line 251
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting/webhelp/includes/javascript.php:61) in /home/hosting/webhelp/includes/sessions.php on line 252 |
|
|
   |
 |
steven111
Lieutenant


Joined: Dec 30, 2003
Posts: 283
|
Posted:
Sat Feb 21, 2004 6:12 pm |
  |
I was running my server, and suddenly the error just started to happen. Naturally I did not refer to this site, and spent quite a few hours probing in the dark Then I found this thread, and now the problem is fixed by putting the line in .htaccess. I don't know why the problem suddenly started to happen, but I am not going to worry about it (unless it happens again).
Thank you, Raven!
steve |
|
|
    |
 |
zerogreen
Nuke Soldier


Joined: Sep 26, 2003
Posts: 19
Location: South Africa
|
Posted:
Tue Feb 24, 2004 11:37 pm |
  |
Ok, I've tried the mainfile.php fix, I did the .htaccess file, I tried the ini_set script, output_buffering is on on the server - I still get the "cannot modify header information - headers already sent" error on my Forum.
The problem occurs in IE, Mozilla and Opera.
Does anyone have any idea what this can be?
Please - I don't have much hair left  |
_________________ if(empty($beer))
{ getbeer() }
else
{ consume($beer) } |
|
   |
 |
terbeaux
Nuke Cadet


Joined: Mar 10, 2004
Posts: 1
|
Posted:
Wed Mar 10, 2004 10:33 am |
  |
[quote="zerogreen"]Ok, I've tried the mainfile.php fix, I did the .htaccess file, I tried the ini_set script, output_buffering is on on the server - I still get the "cannot modify header information - headers already sent" error on my Forum.
The problem occurs in IE, Mozilla and Opera.
I have the exact same problem with forums and have tired the above fixes to no avail Does anyone know another fix to try?
Environment - Nuke 7.0, Apache 2, Solaris 8 |
|
|
   |
 |
zerogreen
Nuke Soldier


Joined: Sep 26, 2003
Posts: 19
Location: South Africa
|
Posted:
Wed Mar 10, 2004 10:25 pm |
  |
Terbeaux, My error was generated by "sessions.php". So I commented out the lines that caused the problems as suggested in this post:
http://nukecops.com/postt739.html.
Now it seems to be working.
I am however not sure what implications there might be by not updating your header info.
Try it. |
_________________ if(empty($beer))
{ getbeer() }
else
{ consume($beer) } |
|
   |
 |
dionysus
Nuke Cadet


Joined: Mar 14, 2004
Posts: 6
|
Posted:
Sun Mar 14, 2004 3:39 pm |
  |
PHP_FLAG output_buffering On
worked for me, thanks |
|
|
   |
 |
reptix
Nuke Soldier


Joined: Dec 26, 2003
Posts: 21
|
Posted:
Wed Mar 24, 2004 5:24 am |
  |
Please help I tried everything even taking then line out I still get Warning: Cannot modify header information - headers already sent by (output started at /home/reptix/public_html/index.php:4) in /home/reptix/public_html/mainfile.php on line 188 in IE and MOZILLA not NetScape though. I cant find the mainfile.php fix please help. |
_________________ :: ReptiX :: |
|
      |
 |
|
|