Welcome Guest, Not a member yet? Register   Sign In
Community Auth - a database error when logging in

(This post was last modified: 05-22-2017, 07:49 AM by skunkbad.)

(05-21-2017, 10:44 AM)arie55 Wrote: I have installed Community Auth with CodeIgniter 3.1.4 and I got the same error : 
Quote:Column 'id' cannot be null [...] Filename: third_party/community_auth/models/Auth_model.php Line Number: 90

After reading this thread, I checked my CI session configuration (it was OK) and then, I started to debug.

It seems that after this line (libraries/Authentication.php:693
PHP Code:
$session_id $this->CI->session->sess_regenerateconfig_item('sess_regenerate_destroy') ); 
the value of $session_id is null.

But, if I replace this line by :
PHP Code:
$this->CI->session->sess_regenerateconfig_item('sess_regenerate_destroy') );
$session_id $this->CI->session->session_id
 everything is working well.

Do you have any idea why I get this error ?

What is your session config look like? Have you set base_url in config/config? Did you properly set up your encryption key?

Messages In This Thread
RE: Community Auth - a database error when logging in - by skunkbad - 05-22-2017, 07:49 AM

Theme © iAndrew 2016 - Forum software by © MyBB