Not a bug Create usergroup error

Nyxtaz

Member
Affected version
2.3.6
When i try to create a new usergroup i receive the next error.
Is this a bug or something else?

Just installed my forum from scratch....


InvalidArgumentException: Attempted to convert NULL to integer [user_group_id] in src/XF/Mvc/Entity/Entity.php at line 808
  1. XF\Mvc\Entity\Entity->_castValueToType() in src/XF/Mvc/Entity/Entity.php at line 682
  2. XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 612
  3. XF\Mvc\Entity\Entity->__set() in src/addons/apathy/StyleSuite/XF/Admin/Controller/UserGroupController.php at line 60
  4. apathy\StyleSuite\XF\Admin\Controller\UserGroupController->apathy\StyleSuite\XF\Admin\Controller\{closure}() in src/XF/Mvc/FormAction.php at line 167
  5. XF\Mvc\FormAction->run() in src/XF/Admin/Controller/UserGroupController.php at line 125
  6. XF\Admin\Controller\UserGroupController->actionSave() in src/XF/Mvc/Dispatcher.php at line 362
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  11. XF\App->run() in src/XF.php at line 806
  12. XF::runApp() in admin.php at line 15
 
That looks like a bug in Style Suite and not Xenforo, I'll be getting another hotfix out either tomorrow or on Saturday so I'll have this addressed then.

In the meantime you can disable the addon -> create the user group -> re-enable the addon and that should work around it
 
That looks like a bug in Style Suite and not Xenforo, I'll be getting another hotfix out either tomorrow or on Saturday so I'll have this addressed then.

In the meantime you can disable the addon -> create the user group -> re-enable the addon and that should work around it
if i disble it and try to create a usergroup i get this error

XF\Db\Exception: MySQL query error [1364]: Field 'ap_ss_username_colors' doesn't have a default value in src/XF/Db/AbstractStatement.php at line 230
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 83
  3. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
  4. XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 219
  5. XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1572
  6. XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1300
  7. XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 72
  8. XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 190
  9. XF\Mvc\FormAction->run() in src/XF/Admin/Controller/UserGroupController.php at line 125
  10. XF\Admin\Controller\UserGroupController->actionSave() in src/XF/Mvc/Dispatcher.php at line 362
  11. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  12. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  13. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  14. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  15. XF\App->run() in src/XF.php at line 806
  16. XF::runApp() in admin.php at line 15
 
Back
Top Bottom