You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 148 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - index.php I get error in header [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Shile
Nuke Soldier
Nuke Soldier


Joined: Jul 01, 2003
Posts: 18


PostPosted: Wed Oct 01, 2003 10:53 am Reply with quoteBack to top

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
Find all posts by ShileView user's profileSend private message
Admin32
Nuke Soldier
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28

Location: Greece

PostPosted: Wed Oct 01, 2003 11:35 am Reply with quoteBack to top

Shile, I've got the same problem but haven't figured it out yet.
Find all posts by Admin32View user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Oct 01, 2003 11:50 am Reply with quoteBack to top

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
Find all posts by RavenView user's profileSend private messageVisit poster's website
Admin32
Nuke Soldier
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28

Location: Greece

PostPosted: Wed Oct 01, 2003 12:35 pm Reply with quoteBack to top

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
)
Find all posts by Admin32View user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Oct 01, 2003 1:04 pm Reply with quoteBack to top

I should have told you to check to see if OB was already on. Sorry Embarassed

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
Find all posts by RavenView user's profileSend private messageVisit poster's website
Admin32
Nuke Soldier
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28

Location: Greece

PostPosted: Wed Oct 01, 2003 1:13 pm Reply with quoteBack to top

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 ?
Find all posts by Admin32View user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Oct 01, 2003 1:17 pm Reply with quoteBack to top

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
Find all posts by RavenView user's profileSend private messageVisit poster's website
Admin32
Nuke Soldier
Nuke Soldier


Joined: Sep 07, 2003
Posts: 28

Location: Greece

PostPosted: Thu Oct 02, 2003 2:35 am Reply with quoteBack to top

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.
Find all posts by Admin32View user's profileSend private messageVisit poster's website
w3irdo
Nuke Cadet
Nuke Cadet


Joined: Feb 21, 2004
Posts: 1


PostPosted: Sat Feb 21, 2004 11:20 am Reply with quoteBack to top

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
Find all posts by w3irdoView user's profileSend private message
steven111
Lieutenant
Lieutenant


Joined: Dec 30, 2003
Posts: 283


PostPosted: Sat Feb 21, 2004 6:12 pm Reply with quoteBack to top

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 Shocked Then I found this thread, and now the problem is fixed Razz 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
Find all posts by steven111View user's profileSend private messageVisit poster's website
zerogreen
Nuke Soldier
Nuke Soldier


Joined: Sep 26, 2003
Posts: 19

Location: South Africa

PostPosted: Tue Feb 24, 2004 11:37 pm Reply with quoteBack to top

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 Wink

_________________
if(empty($beer))
{ getbeer() }
else
{ consume($beer) }
Find all posts by zerogreenView user's profileSend private message
terbeaux
Nuke Cadet
Nuke Cadet


Joined: Mar 10, 2004
Posts: 1


PostPosted: Wed Mar 10, 2004 10:33 am Reply with quoteBack to top

[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 Mad Does anyone know another fix to try?

Environment - Nuke 7.0, Apache 2, Solaris 8
Find all posts by terbeauxView user's profileSend private message
zerogreen
Nuke Soldier
Nuke Soldier


Joined: Sep 26, 2003
Posts: 19

Location: South Africa

PostPosted: Wed Mar 10, 2004 10:25 pm Reply with quoteBack to top

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. Laughing

I am however not sure what implications there might be by not updating your header info. Wink

Try it.

_________________
if(empty($beer))
{ getbeer() }
else
{ consume($beer) }
Find all posts by zerogreenView user's profileSend private message
dionysus
Nuke Cadet
Nuke Cadet


Joined: Mar 14, 2004
Posts: 6


PostPosted: Sun Mar 14, 2004 3:39 pm Reply with quoteBack to top

PHP_FLAG output_buffering On

worked for me, thanks
Find all posts by dionysusView user's profileSend private message
reptix
Nuke Soldier
Nuke Soldier


Joined: Dec 26, 2003
Posts: 21


PostPosted: Wed Mar 24, 2004 5:24 am Reply with quoteBack to top

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 ::
Find all posts by reptixView user's profileSend private messageVisit poster's websiteAIM AddressYahoo Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.745 Seconds - 86 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::