Class: PDOException:

Exception: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null

File=/var/www/loserhub/app/traits/GroupTrait.php Line=123

#0 [internal function]: PDOStatement->execute()
#1 [internal function]: Phalcon\Db\Adapter\Pdo\AbstractPdo->executePrepared(Object(PDOStatement), Array, Array)
#2 [internal function]: Phalcon\Db\Adapter\Pdo\AbstractPdo->execute('INSERT INTO `fr...', Array, Array)
#3 [internal function]: Phalcon\Db\Adapter\AbstractAdapter->insert('frontend_users_...', Array, Array, Array)
#4 [internal function]: Phalcon\Mvc\Model->doLowInsert(Object(Phalcon\Mvc\Model\MetaData\Memory), Object(Phalcon\Db\Adapter\Pdo\Mysql), 'frontend_users_...', false)
#5 [internal function]: Phalcon\Mvc\Model->save()
#6 /var/www/loserhub/app/traits/GroupTrait.php(123): Phalcon\Mvc\Model->create()
#7 /var/www/loserhub/app/modules/common/controllers/GroupController.php(142): Loserhub\Common\Controllers\GroupController::isGroupFollowing(NULL, NULL)
#8 /var/www/loserhub/app/modules/common/controllers/GroupController.php(68): Loserhub\Common\Controllers\GroupController->verifyIsAdminAndIsFollow(NULL, NULL)
#9 /var/www/loserhub/app/modules/frontend/controllers/GroupsController.php(2646): Loserhub\Common\Controllers\GroupController->getCommonGroupSiderbar(NULL, NULL, '30', 'zh-CN')
#10 /var/www/loserhub/app/modules/frontend/controllers/GroupsController.php(1838): Loserhub\Frontend\Controllers\GroupsController->getGroupSiderbar(NULL)
#11 [internal function]: Loserhub\Frontend\Controllers\GroupsController->imagesAction('29d819541b5c425...')
#12 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(Loserhub\Frontend\Controllers\GroupsController), 'imagesAction', Array)
#13 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#14 /var/www/loserhub/app/bootstrap_web.php(104): Phalcon\Mvc\Application->handle('/groups/images/...')
#15 /var/www/loserhub/public/index.php(17): require('/var/www/loserh...')
#16 {main}