| Author |
Message |
toesocks
Nuke Cadet


Joined: Apr 03, 2004
Posts: 4
|
Posted:
Wed Apr 07, 2004 4:01 am |
  |
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
|
|
|
|
   |
 |
nukeum66
Lieutenant


Joined: Jun 27, 2003
Posts: 286
Location: Memphis, TN - No! I haven't seen Elvis
|
Posted:
Wed Apr 07, 2004 6:45 am |
  |
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!" |
|
    |
 |
toesocks
Nuke Cadet


Joined: Apr 03, 2004
Posts: 4
|
Posted:
Thu Apr 08, 2004 3:47 am |
  |
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? |
|
|
   |
 |
nukeum66
Lieutenant


Joined: Jun 27, 2003
Posts: 286
Location: Memphis, TN - No! I haven't seen Elvis
|
Posted:
Thu Apr 08, 2004 5:38 pm |
  |
php.ini is something your host will have to do. |
_________________ "I am, therefore I do!" |
|
    |
 |
djmaze
Captain


Joined: Nov 29, 2003
Posts: 566
Location: Netherlands
|
Posted:
Thu Apr 08, 2004 6:14 pm |
  |
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
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please  |
|
    |
 |
djmaze
Captain


Joined: Nov 29, 2003
Posts: 566
Location: Netherlands
|
Posted:
Sat Apr 10, 2004 12:37 pm |
  |
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 ? |
|
|
    |
 |
toesocks
Nuke Cadet


Joined: Apr 03, 2004
Posts: 4
|
Posted:
Sun Apr 25, 2004 5:49 am |
  |
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. thanks for replying, just the same. |
|
|
   |
 |
djmaze
Captain


Joined: Nov 29, 2003
Posts: 566
Location: Netherlands
|
Posted:
Thu Apr 29, 2004 4:31 pm |
  |
| 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. thanks for replying, just the same. |
i'm not jumping on any conclusions for ya mate
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
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please  |
|
    |
 |
LadyCherry
Lieutenant


Joined: Aug 12, 2003
Posts: 184
|
Posted:
Sun May 30, 2004 7:58 am |
  |
what does the:
error_reporting(E_ALL ^ E_NOTICE);
code do?
Does it send an error message for things?
-Lady Cherry |
|
|
   |
 |
|
|