It seems pretty clear, Unknown column 'group_id' in 'field list'
means there are no columns named group_id
in your users
table.
Either create this column or don't select it.
题
Should the login work as it is? I've puted files to my project, added sql but when I'm trying to log in at http://mysite.local/index.php/auth/login with default account (admin@admin.com/password) it gives me the following error:
A Database Error Occurred
Error Number: 1054
Unknown column 'group_id' in 'field list'
SELECT
id
,password
,group_id
FROM (users
) WHEREactive
= 1 LIMIT 1Filename: /home/kirill/WWW/hours/models/ion_auth_model.php
Line Number: 593
Line num 593 is the last one over here.
$query = $this->db->select($this->identity_column.', id, password, group_id')
->where($this->identity_column, $identity)
->where('active', 1)
->where($this->ion_auth->_extra_where)
->limit(1)
->get($this->tables['users']);
database.php configured with correct log in values and the tables are in place. Also Users table and users_groups have correct rows with admin login data.
If it really should work by default where to dig for a problem? I've tried to google this but it wasn't helpful.
解决方案
It seems pretty clear, Unknown column 'group_id' in 'field list'
means there are no columns named group_id
in your users
table.
Either create this column or don't select it.