| Author |
Message |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 02, 2003 4:06 am |
  |
There have been SOOOOOOOOOO mnay posts about this. Hopefully this will fix it for you.
output_buffering MUST be set to on or 1
It has to be set either in the php.ini file or in .htaccess
It is NOT settable through the script using ini_set
Here would be the php.ini file
| Code: |
| output_buffering = on |
Here would be the .htaccess file
| Code: |
| php_flag output_buffering 1 |
|
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
sp0nge
Nuke Cadet


Joined: Jun 08, 2003
Posts: 3
|
Posted:
Sun Jun 08, 2003 6:00 pm |
  |
I've searched the forums and found only 1 other post that contains the same error that I am getting (the poster was told by you to do a search for 'error_reporting' to find a solution for the error). Here is the error again:
Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer default output handler. in /usr/home/gr8t/userfiles/public_html/mainfile.php on line 18
I've checked to ensure that ouput_buffering was enabled and it shows a value of 4096 in the default server settings:
http://www.gr8tservice.org/phpinfo.php
I assume that means it is enabled. Any ideas?
Thanks for you help! |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Jun 08, 2003 6:13 pm |
  |
Yes and no. Try setting it to On. I have documented cases where the two do not behave the same . let us know. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
sp0nge
Nuke Cadet


Joined: Jun 08, 2003
Posts: 3
|
Posted:
Sun Jun 08, 2003 10:36 pm |
  |
Well, after a bit of reading (and hair pulling) I think I've put my finger on the problem.
My Working Environment
FreeBSD 4.8-STABLE - PHP Version 4.3.1 - PHP-Nuke 6.5 - MySQL 3.23.56
Most of the errors that I was encountering were displayed only because my webhost provider has error_reporting set to the highest level (2047 or E_ALL). The majority of webmasters will not encounter this since the default error_reporting level will not force the messages to be displayed. By changing my error_reporting level I was able to suppress the majority of the errors.
The Errors
Notice: Undefined variable: HTTP_USER_AGENT in /usr/home/gr8t/userfiles/public_html/mainfile.php on line 16
This is an attempt to use an environment variable that has not implicitly been declared in the GLOBAL scope.
Changed to
| Code: |
| $_SERVER['http_user_agent'] |
Notice: import_request_variables() [function.import-request-variables]: No prefix specified - possible security hazard in /usr/home/gr8t/userfiles/public_html/mainfile.php on line 39
This looks like a fix from the register_globals change in PHP 4.2.0. Normally this wouldn't be seen so not a big deal. But it does raise some security questions...
Notice: Undefined variable: forum_admin in /usr/home/gr8t/userfiles/public_html/mainfile.php on line 69
An IF statement referencing an undeclared variable.
Changed to
| Code: |
| if(isset($forum_admin) && $forum_admin ==1) { |
Notice: Use of undefined constant inside_mod - assumed 'inside_mod' in /usr/home/gr8t/userfiles/public_html/mainfile.php on line 72
Missing $ before the variable reference.
Notice: Undefined variable: inside_mod in /usr/home/gr8t/userfiles/public_html/db/db.php on line 44
An IF statement referencing an undeclared variable.
Changed to
| Code: |
| if(isset($inside_mod) && $inside_mod ==1) { |
Fatal error: Call to undefined function: message_die() in /usr/home/gr8t/userfiles/public_html/db/db.php on line 88
This ones my favorite.......I mispelled my database password in config.php. When a database connection could not be established, db.php tried to display an error message. Unfortunately, functions.php was not included/required and the function was not defined.
Hope this helps somebody who encounters the same problems. |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Mon Jun 09, 2003 4:31 am |
  |
I never even noticed the word Notice I could have fixed that immediately. Sorry! We even tell you that in our Welcome Announcement and have answered it many times here. Well, look at all you learned . Thanks for sharing! |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
sp0nge
Nuke Cadet


Joined: Jun 08, 2003
Posts: 3
|
Posted:
Mon Jun 09, 2003 7:18 am |
  |
Yeah........it was a blast (**grumble,grumble**) |
|
|
   |
 |
King-b
Nuke Soldier


Joined: Sep 11, 2004
Posts: 13
Location: Indianapolis
|
Posted:
Thu Sep 23, 2004 6:03 pm |
  |
| Quote: |
There have been SOOOOOOOOOO mnay posts about this. Hopefully this will fix it for you.
output_buffering MUST be set to on or 1
It has to be set either in the php.ini file or in .htaccess
It is NOT settable through the script using ini_set
Here would be the php.ini file
Code:
output_buffering = on
Here would be the .htaccess file
Code:
php_flag output_buffering 1
|
this is all great info but i dont have a php.ini file, im using nuke 6.5 and the .htaccess file says "deny from all" thats it?[/quote] |
_________________ Nap Towns Best<br>
http://king-b.com |
|
        |
 |
|
|