I have error after upgrading to 2.2.20, latest patch.
After that I had issues with restoring forum, you can read about it here.
As it unlocked by itself, I tried to upgrade again, and this is the error I have when searching for users (in CP and when it's done in front end):
I'm not sure if it's something simple, but it is been repeated on second upgrade attempt.
I did successfully upgraded smaller forum where I can search for users and there searching for users works, as far as I can say. But, on this particular one, with more data, this consistently happens
After that I had issues with restoring forum, you can read about it here.
As it unlocked by itself, I tried to upgrade again, and this is the error I have when searching for users (in CP and when it's done in front end):
- XF\Db\InvalidQueryException: MySQL statement prepare error [1176]: Key 'username' doesn't exist in table 'xf_user'
- src/XF/Db/AbstractStatement.php:230
- Generated by: Alan_SP
- Sunday - 29.11.2026 at 20:36:56
Code:
Stack trace
SELECT `xf_user`.*
FROM `xf_user` IGNORE INDEX (`username`)
ORDER BY `xf_user`.`username` ASC
LIMIT 20
------------
#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL statement...', 1176, '42000')
#1 src/XF/Db/Mysqli/Statement.php(40): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1176, '42000')
#2 src/XF/Db/Mysqli/Statement.php(56): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(106): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Mvc/Entity/Finder.php(1428): XF\Db\AbstractAdapter->query('
SELECT `xf_...')
#5 src/XF/Admin/Controller/User.php(116): XF\Mvc\Entity\Finder->fetch()
#6 src/XF/Admin/Controller/User.php(32): XF\Admin\Controller\User->getListData(false, NULL)
#7 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\User->actionList(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:User', 'List', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\User), NULL)
#9 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\User), NULL)
#10 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2523): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}
Code:
Request state
array(4) {
["url"] => string(27) "/forum/admin.php?users/list"
["referrer"] => string(42) "https://exiledkingdoms.com/forum/admin.php"
["_GET"] => array(1) {
["users/list"] => string(0) ""
}
["_POST"] => array(0) {
}
}
I'm not sure if it's something simple, but it is been repeated on second upgrade attempt.
I did successfully upgraded smaller forum where I can search for users and there searching for users works, as far as I can say. But, on this particular one, with more data, this consistently happens