Michael_IO
New member
Hi, I've recently upgraded a forum from v1.5.x to 2.2.2. Prior to the upgrade I've uninstalled all add-ons to start fresh with the new installation. The upgrade itself worked fine without any issues but I just noticed that creating users isn't possible anymore, neither the normal registration nor manually creating users.
Another issue I've noticed (but I think it's unrelated to this particular issue) is that on the front end in the widget "Forum Statistics" I see round about 10k users less than in the admin as total user count.
When creating a user it throws this error in the server log:
and:
How can I solve this issue? Thanks.
Another issue I've noticed (but I think it's unrelated to this particular issue) is that on the front end in the widget "Forum Statistics" I see round about 10k users less than in the admin as total user count.
When creating a user it throws this error in the server log:
Code:
XF\Db\Exception: MySQL query error [1364]: Field 'associated_resource_ids' doesn't have a default value src/XF/Db/AbstractStatement.php:228
and:
Code:
INSERT INTO `xf_user` (`visible`, `activity_visible`, `user_group_id`, `timezone`, `language_id`, `last_summary_email_date`, `username`, `email`, `secondary_group_ids`, `user_state`, `security_lock`, `is_staff`, `custom_title`, `message_count`, `reaction_score`, `trophy_points`, `style_id`, `display_style_group_id`, `secret_key`, `user_id`, `username_date`, `username_date_visible`, `permission_combination_id`, `question_solution_count`, `alerts_unviewed`, `alerts_unread`, `conversations_unread`, `register_date`, `last_activity`, `avatar_date`, `avatar_width`, `avatar_height`, `avatar_highdpi`, `gravatar`, `is_moderator`, `is_admin`, `is_banned`, `vote_score`, `warning_points`, `privacy_policy_accepted`, `terms_accepted`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(218): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1510): XF\Db\AbstractAdapter->insert('xf_user', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1242): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Mvc/FormAction.php(69): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Mvc/FormAction.php(187): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#8 src/XF/Admin/Controller/User.php(516): XF\Mvc\FormAction->run()
#9 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\User->actionSave(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:User', 'Save', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\User), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\User), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#14 src/XF.php(488): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}
How can I solve this issue? Thanks.