Solved Unknown column 'xs_gamerbanners' in 'field list'

SyTry

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
641
Reaction score
398
Hello,

Here is a bug when you try to create a new member (version 2.1.3) :
  • XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'xs_gamerbanners' in 'field list'
  • src/XF/Db/AbstractStatement.php:217
Stack trace :
Code:
INSERT  INTO `xf_user` (`visible`, `activity_visible`, `user_group_id`, `timezone`, `language_id`, `username`, `email`, `secondary_group_ids`, `user_state`, `is_staff`, `custom_title`, `message_count`, `reaction_score`, `trophy_points`, `style_id`, `xs_gamerbanners`, `display_style_group_id`, `secret_key`, `user_id`, `permission_combination_id`, `alerts_unread`, `conversations_unread`, `register_date`, `last_activity`, `avatar_date`, `avatar_width`, `avatar_height`, `avatar_highdpi`, `gravatar`, `is_moderator`, `is_admin`, `is_banned`, `warning_points`, `privacy_policy_accepted`, `terms_accepted`, `xs_moods_id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(221): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1452): XF\Db\AbstractAdapter->insert('xf_user', Array, false)
#6 src/XF/Mvc/Entity/Entity.php(1184): XF\Mvc\Entity\Entity->_saveToSource()
#7 src/XF/Mvc/FormAction.php(69): XF\Mvc\Entity\Entity->save(true, false)
#8 src/XF/Mvc/FormAction.php(187): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#9 src/XF/Admin/Controller/User.php(504): XF\Mvc\FormAction->run()
#10 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\User->actionSave(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:User', 'Save', Object(XF\Mvc\RouteMatch), Object(XenSoluce\GamerBanners\XF\Admin\Controller\User), NULL)
#12 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\GamerBanners\XF\Admin\Controller\User), NULL)
#13 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#15 src/XF.php(390): XF\App->run()
#16 admin.php(13): XF::runApp('XF\\Admin\\App')
#17 {main}

Request state :
Code:
array(4) {
  ["url"] => string(23) "/admin.php?users/0/save"
  ["referrer"] => string(47) "https://demo.xen-soluce.com/admin.php?users/add"
  ["_GET"] => array(1) {
    ["users/0/save"] => string(0) ""
  }
  ["_POST"] => array(13) {
    ["user"] => array(13) {
      ["username"] => string(4) "Demo"
      ["email"] => string(0) ""
      ["user_group_id"] => string(1) "2"
      ["user_state"] => string(5) "valid"
      ["custom_title"] => string(0) ""
      ["message_count"] => string(1) "0"
      ["reaction_score"] => string(1) "0"
      ["trophy_points"] => string(1) "0"
      ["style_id"] => string(1) "0"
      ["language_id"] => string(1) "1"
      ["timezone"] => string(13) "Europe/London"
      ["visible"] => string(1) "1"
      ["activity_visible"] => string(1) "1"
    }
    ["password"] => string(8) "********"
    ["dob_month"] => string(1) "0"
    ["dob_day"] => string(0) ""
    ["dob_year"] => string(0) ""
    ["profile"] => array(4) {
      ["location"] => string(0) ""
      ["website"] => string(0) ""
      ["about"] => string(0) ""
      ["signature"] => string(0) ""
    }
    ["custom_fields"] => array(3) {
      ["skype"] => string(0) ""
      ["facebook"] => string(0) ""
      ["twitter"] => string(0) ""
    }
    ["option"] => array(5) {
      ["content_show_signature"] => string(1) "1"
      ["email_on_conversation"] => string(1) "1"
      ["creation_watch_state"] => string(11) "watch_email"
      ["interaction_watch_state"] => string(11) "watch_email"
      ["show_dob_date"] => string(1) "1"
    }
    ["privacy"] => array(5) {
      ["allow_view_profile"] => string(8) "everyone"
      ["allow_post_profile"] => string(7) "members"
      ["allow_receive_news_feed"] => string(8) "everyone"
      ["allow_send_personal_conversation"] => string(7) "members"
      ["allow_view_identities"] => string(8) "everyone"
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(20) "/admin.php?users/add"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Regards, SyTry
 
Back
Top Bottom