Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

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

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
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©