Blog • Page 2

Can’t Log In After CodeIgniter 3.1.2 Upgrade?

If you’re using Community Auth and upgrade CodeIgniter to version 3.1.2, you will no longer be able to log in as any user. If you can log in, you won’t be able to stay logged in. The reason for this is that there were changes in CodeIgniter’s Session library, and because Community Auth extends the Session library with MY_Session.php, you’d need to upgrade the extension, as well as make some simple changes to your database.

The Community Auth repository had commits back in November of 2016 to fix this issue, but people are still running into this problem and not realizing what needs to be done.

Click here to continue reading …

Session Problem When Sessions Loaded Before Community Auth Loads

It was brought to my attention that there was a problem with sessions when something else loads sessions before Community Auth loads its dependencies:

Error Number: 1048
Column ‘id’ cannot be null
INSERT INTO `auth_sessions` (`id`, `user_id`, `login_time`, `ip_address`, `user_agent`) VALUES (NULL, ‘412049668’, ‘2017-08-31 10:57:57’, ‘’, ‘Firefox 55.0 on Linux’)
Filename: third_party/community_auth/models/Auth_model.php
Line Number: 90

Click here to continue reading …