Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Auth
Can not create a user 'unknown column group_id'
laurent
June 2013
HI,
I try creating a user through oil console but I get an error message about unknown column group_id.
Here is what I typed in oil console
Auth::create_user('login', 'password', 'name@domain.com', 100)
And the error message that I got
Parse Error - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'group_id' in 'field list' with query: "INSERT INTO `users` (`username`, `password`, `email`, `group_id`, `profile_fields`, `last_login`, `login_hash`, `created_at`) VALUES ('login', 'GttPkyaV6pZAATxAb/psuX+QvpmdYNoB9lIRD/TP4JA=', 'name@domain.com', 100, 'a:0:{}', 0, '', 1371067599)"
I am using SimpleAuth and for creating auth tables I used command line :
oil refine migrate --packages=auth
Do you have any idea of what am I doing wrong ?
My version of FuelPHP is 1.6.1
Laurent
Harro
June 2013
Accepted Answer
It's a bug.
There's a typo at line 257 in auth/classes/auth/login.php, it should say 'group' there instead of 'group_id'.
I've pushed a fix for this to 1.7/develop. You can just change this locally.
laurent
June 2013
It worked.
Thanks for your help.
bdouxx
June 2013
hi
same problem on branch 1.6/master
Harro
June 2013
That is what this report is about.
You have the option to:
- apply the fix manually
- switch to 1.7/develop
- wait for 1.6.2 to be released
richardjkeys
September 2013
I'm getting a similar error - I'm happy to apply the fix manually, but can't seem to find the file you reference to edit. I'm looking inside packages/auth/classes/auth - is this the wrong place?
richardjkeys
September 2013
Sorted, sorry - tired Sunday eyes.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
bdouxx
June 2013
Harro
June 2013
laurent
June 2013
richardjkeys
September 2013