• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 ErrorException: Undefined offset: 3 - library/XenForo/Model/UserUpgrade.php:71


there is a user in my forum which gets an error whenever he clicks "Account Upgrade" in his profile
It only happened to him so far and I have no idea why, there are several other users in the same usergroup it works for them.

userupgrade.php:71 is:
$purchased[$upgradeId] = $upgrades[$upgradeId];

and this is what I get in the Admin Panel as error log:

Error Info
ErrorException: Undefined offset: 3 - library/XenForo/Model/UserUpgrade.php:71
Generated By: nathanmckluckly, A moment ago
Stack Trace
#0 /home/xenforo/library/XenForo/Model/UserUpgrade.php(71): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/shadoom/x...', 71, Array)
#1 /home/xenforo/library/XenForo/ControllerPublic/Account.php(1376): XenForo_Model_UserUpgrade->getUserUpgradesForPurchaseList()
#2 /home/xenforo/library/XenForo/FrontController.php(310): XenForo_ControllerPublic_Account->actionUpgrades()
#3 /home/xenforo/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/xenforo/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
["url"] => string(35) "http://shadoom.com/account/upgrades"
["_GET"] => array(0) {
["_POST"] => array(0) {
his mysql entry looks like this:
a working mysql entry looks like this:
I don't see any difference between these too except the name email etc. of course


Fixed it!

I had to downgrade him manually under: "Active User Upgrades" after that everything worked as usual... still kind of awkward :(