These are chat archives for dektrium/yii2-user

3rd
Nov 2014
shamyne
@shamyne
Nov 03 2014 19:23

I get the following error message when I try adding a user /user/registration/register. What am I doing wrong? I am using development mode in yii2.

Database Exception – yii\db\Exception
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'registration_ip' at row 1
The SQL being executed was: INSERT INTO user (email, username, auth_key, registration_ip, password_hash, created_at, updated_at) VALUES ('user1@users.com', 'user1', 'khVmqAKWWkxHrdiWJ6pjvkfdYt4OaFsO', '', '$2y$10$M4oq6S83GnwO1NT.rcOTq.Revik.72rS82oAf5GavBjE6Scrf715u', 1415042121, 1415042121)
Error Info: Array ( [0] => HY000 [1] => 1366 [2] => Incorrect integer value: '' for column 'registration_ip' at row 1 )

Caused by: PDOException
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'registration_ip' at row 1