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, 121 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 - ob_gzhandler error fix [ ]
 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
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 02, 2003 4:06 am Reply with quoteBack to top

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


Joined: Jun 08, 2003
Posts: 3


PostPosted: Sun Jun 08, 2003 6:00 pm Reply with quoteBack to top

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!
Find all posts by sp0ngeView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Jun 08, 2003 6:13 pm Reply with quoteBack to top

Yes and no. Try setting it to On. I have documented cases where the two do not behave the same Smile. let us know.

_________________
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
sp0nge
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 3


PostPosted: Sun Jun 08, 2003 10:36 pm Reply with quoteBack to top

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
Code:
$HTTP_USER_AGENT
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
Code:
if($forum_admin) {
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
Code:
if($inside_mod) {
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.
Find all posts by sp0ngeView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 09, 2003 4:31 am Reply with quoteBack to top

Embarassed I never even noticed the word Notice Embarassed 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 Smile. Thanks for sharing!

_________________
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
sp0nge
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2003
Posts: 3


PostPosted: Mon Jun 09, 2003 7:18 am Reply with quoteBack to top

Yeah........it was a blast (**grumble,grumble**)
Find all posts by sp0ngeView user's profileSend private message
King-b
Nuke Soldier
Nuke Soldier


Joined: Sep 11, 2004
Posts: 13

Location: Indianapolis

PostPosted: Thu Sep 23, 2004 6:03 pm Reply with quoteBack to top

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
Find all posts by King-bView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN 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
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.211 Seconds - 259 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::