PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15062
Location: Kansas

PostPosted: Sat Apr 19, 2003 6:00 pm Reply with quote Back to top

If you are receiving, either in your error_log or on your screen, all kinds of Undefined Variable messages which are preceeded by Notice: then here is how to fix it.

These Notices are being displayed because the setting error_reporting in your php.ini file is set to E_ALL or some combination of E_NOTICE. While you may desire this while debugging, you certainly do not want this in a production environment.

If you have access to you php.ini file then you need to modify the error_reporting setting to read E_ALL &~ E_NOTICE . Then restart your server. Those messages will disappear. However, if someone else hosts your site, then you need to ask them to set you up so that your instance of PHP will have the setting changed to E_ALL &~ E_NOTICE. They may have to change it for everyone which would be a good thing anyway Wink .

In the meantime, there is a way to fix KISGB. In config.php, addtogb.php, and upconfig.php, add this line of code as the SECOND line in each file.
Code:
error_reporting(E_ALL &~ E_NOTICE);
Note the ; at the end. So, the first 2 lines of those files will now read like this..
Code:
<?
error_reporting(E_ALL &~ E_NOTICE);
I will modify KISGB in version 5.1.0 and later to include this, but for now, you will need to override it
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum