Debugging

Before pulling your hair out, or banging your head against the wall, there are easy ways to help narrow down why you might not be able to login. Community Auth uses the log_message function of CodeIgniter’s error handling to show you valuable messages related to logging in and staying logged in. To use this logging feature, you must turn it on, as logging is not turned on be default.

Set Error Logging Threshold

Before debugging, you will first need to open up /application/config/config.php. Find the log_threshold setting and change it to 2 or greater. 2 is the lowest level that allows for debug level error messages to be logged, and this is the level that Community Auth uses.

When you’re done debugging, make sure to go back and turn off CodeIgniter logging.

$config['log_threshold'] = 0;

Still Need Help?

I hope I’ve provided enough information for you to debug your application. In my daily use of applications built on Community Auth, the debug logging is all I would need to quickly diagnose a problem logging in or staying logged in. If you need extra help, please ask for help on the CodeIgniter Forum.