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, 50 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 - phpBB header errors [ ]
 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
toesocks
Nuke Cadet
Nuke Cadet


Joined: Apr 03, 2004
Posts: 4


PostPosted: Wed Apr 07, 2004 4:01 am Reply with quoteBack to top

hi everyone!

i'm running PHP-Nuke 7.0 with a phpBB module. one of my users have been getting header errors everytime she visits the forums. they are the only ones who have been receiving the errors because i haven't seen them myself and a couple other users reported they haven't been getting them either.

my concern is finding out if the errors occur because of the script or if the problem lies with the user's computer settings.

this is the error that one user sees:

Code:

Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/php-nuke/header.php:32) in /home/*****/public_html/php-nuke/includes/sessions.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/php-nuke/header.php:32) in /home/*****/public_html/php-nuke/includes/sessions.php on line 252

Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/php-nuke/header.php:32) in /home/*****/public_html/php-nuke/modules/Forums/viewtopic.php on line 596
Find all posts by toesocksView user's profileSend private message
nukeum66
Lieutenant
Lieutenant


Joined: Jun 27, 2003
Posts: 286

Location: Memphis, TN - No! I haven't seen Elvis

PostPosted: Wed Apr 07, 2004 6:45 am Reply with quoteBack to top

Tell them to try clearing their cache,deleting temp. internet files.

If you have access to your php.ini make sure output_buffering = On

_________________
"I am, therefore I do!"
Find all posts by nukeum66View user's profileSend private messageVisit poster's website
toesocks
Nuke Cadet
Nuke Cadet


Joined: Apr 03, 2004
Posts: 4


PostPosted: Thu Apr 08, 2004 3:47 am Reply with quoteBack to top

thank you very much for replying!

i'll have them do as you suggested.

as for the php.ini file, where i can i find it? is it part of the PHP-Nuke script or is it somewhere on my hosting account?
Find all posts by toesocksView user's profileSend private message
nukeum66
Lieutenant
Lieutenant


Joined: Jun 27, 2003
Posts: 286

Location: Memphis, TN - No! I haven't seen Elvis

PostPosted: Thu Apr 08, 2004 5:38 pm Reply with quoteBack to top

php.ini is something your host will have to do.

_________________
"I am, therefore I do!"
Find all posts by nukeum66View user's profileSend private messageVisit poster's website
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Thu Apr 08, 2004 6:14 pm Reply with quoteBack to top

All wrong !!!

headers already send warnings occure everywhere in phpBB into nuke due to the wrong integration.

Don't hide it using php but fix it !!!

Below are 2 scripts, the first creates the error and the second not so you can see why.
Code:
<?php
header('Content type="text/html"');
echo "something or even a space before <? or after ?> is a echo";
header("gzip compressed");
?>
Code:
<?php
header('Content type="text/html"');
header("gzip compressed");
echo "something or even a space before <? or after ?> is a echo";
?>


As you can see "header('gzip compressed');" is at the wrong spot and will be never send to the browser and raises the error.
also setcookie() and other header comments after the first output won't be processed.
If you run a HTML compliance check you see all the errors popping up.

To fix you need to modify the phpBB files, like we did in CPG-Nuke.
If you don't believe wot i say checkout these links.
http://validator.w3.org/check?verbose=1&uri=http%3A//www.cpgnuke.com/index.php%3Fname%3DForums
Only 13 errors due to our paypal form

http://validator.w3.org/check?verbose=1&uri=http%3A//nukecops.com/forums.html
801 errors but no header() warnings checking

To check for the warnings yourself use this code in modules/forums/nukebb.php
Code:
error_reporting(E_ALL ^ E_NOTICE);
CPG-Nuke uses this setting by default

_________________
Famous people never give their signature Rolling Eyes
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please Exclamation
Find all posts by djmazeView user's profileSend private messageVisit poster's website
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Sat Apr 10, 2004 12:37 pm Reply with quoteBack to top

Why do these topics always end in nowhere land even when i give the problem and the fix ?

Is this something people don't wanna know about or just ignore ?
Find all posts by djmazeView user's profileSend private messageVisit poster's website
toesocks
Nuke Cadet
Nuke Cadet


Joined: Apr 03, 2004
Posts: 4


PostPosted: Sun Apr 25, 2004 5:49 am Reply with quoteBack to top

thanks for all the help!

djmaze :: yikes! it's not that i don't appreciate what you and the peeple on this board do for people like me who have many questions. i haven't checked this thread since it appeared to solve my initial problem. so obviously i haven't seen your reply.

please don't jump to conclusions. Smile thanks for replying, just the same.
Find all posts by toesocksView user's profileSend private message
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Thu Apr 29, 2004 4:31 pm Reply with quoteBack to top

toesocks wrote:
thanks for all the help!

djmaze :: yikes! it's not that i don't appreciate what you and the peeple on this board do for people like me who have many questions. i haven't checked this thread since it appeared to solve my initial problem. so obviously i haven't seen your reply.

please don't jump to conclusions. Smile thanks for replying, just the same.
i'm not jumping on any conclusions for ya mate Wink
But this question is asked before and still no-one made the fix.

I know i can do it, but why should i ? It's a waste of time fixing this and then come to the conclusion you have to fix it in next releases over and over again.

That's why i said cpgnuke has it, because the people behind cpgnuke just fix it.

_________________
Famous people never give their signature Rolling Eyes
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please Exclamation
Find all posts by djmazeView user's profileSend private messageVisit poster's website
LadyCherry
Lieutenant
Lieutenant


Joined: Aug 12, 2003
Posts: 184


PostPosted: Sun May 30, 2004 7:58 am Reply with quoteBack to top

what does the:
error_reporting(E_ALL ^ E_NOTICE);
code do?

Does it send an error message for things?

-Lady Cherry
Find all posts by LadyCherryView user's profileSend private message
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
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.303 Seconds - 266 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::