This error pops up in the server error log every-time somebody visits the domain/forums/account/upgrades.
Would appreciate some input! Thanks in advance.
Server runs on PHP 7.4.
Error:
ErrorException: [E_NOTICE] Trying to access array offset on value of type null
src/addons/XenSoluce/UserUpgradePro/XF/Entity/UserUpgrade.php:24
#1 src/XF/Repository/UserUpgrade.php(79): XenSoluce\UserUpgradePro\XF\Entity\UserUpgrade->canPurchase()
#2 src/XF/Pub/Controller/Account.php(1216): XF\Repository\UserUpgrade->getFilteredUserUpgradesForList()
#3 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Account->actionUpgrades(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'Upgrades', Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Account), NULL)
#5 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Account), NULL)
#6 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#8 src/XF.php(488): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
["url"] => string(24) "/forums/account/upgrades"
["referrer"] => string(32) "https://www.mydomain.com/forums/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Would appreciate some input! Thanks in advance.
Server runs on PHP 7.4.
Error:
ErrorException: [E_NOTICE] Trying to access array offset on value of type null
src/addons/XenSoluce/UserUpgradePro/XF/Entity/UserUpgrade.php:24
Stack trace
#0 src/addons/XenSoluce/UserUpgradePro/XF/Entity/UserUpgrade.php(24): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/myfolder/...', 24, Array)#1 src/XF/Repository/UserUpgrade.php(79): XenSoluce\UserUpgradePro\XF\Entity\UserUpgrade->canPurchase()
#2 src/XF/Pub/Controller/Account.php(1216): XF\Repository\UserUpgrade->getFilteredUserUpgradesForList()
#3 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Account->actionUpgrades(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'Upgrades', Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Account), NULL)
#5 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Account), NULL)
#6 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#8 src/XF.php(488): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
Request state
array(4) {["url"] => string(24) "/forums/account/upgrades"
["referrer"] => string(32) "https://www.mydomain.com/forums/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}