Solved E_NOTICE errors

tommyxv

Licensed
Licensed
Upgrade Coupons
User Upgrade Duration
User Upgrade Pro
Joined
Jul 11, 2020
Messages
81
Reaction score
35
Got these error when installing. And every time I test it on the upgrades page.

2021-06-17_22-34-01.jpg


Server error log
ErrorException: [E_NOTICE] Trying to access array offset on value of type null src/addons/XenSoluce/UserUpgradePro/XF/Entity/UserUpgrade.php:39
Generated by: REMOVED Jun 17, 2021 at 10:33 PM
Stack trace
#0 src/addons/XenSoluce/UserUpgradePro/XF/Entity/UserUpgrade.php(39): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/REMOVED/publi...', 39, Array)
#1 src/addons/XenSoluce/UpgradeCoupons/Pub/Controller/UpgradeCoupons.php(48): XenSoluce\UserUpgradePro\XF\Entity\UserUpgrade->canRenew()
#2 src/XF/Mvc/Dispatcher.php(350): XenSoluce\UpgradeCoupons\Pub\Controller\UpgradeCoupons->actionCoupons(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XenSoluce\\Upgra...', 'Coupons', Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\Pub\Controller\UpgradeCoupons), NULL)
#4 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\Pub\Controller\UpgradeCoupons), NULL)
#5 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#7 src/XF.php(488): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
["url"] => string(152) "/upgrade-coupons/2/coupons?_xfRequestUri=%2Faccount%2Fupgrades&_xfWithData=1&_xfToken=REMOVED&_xfResponseType=json"
["referrer"] => string(47) "removed.com -&nbspInformationen zum Thema removed."
["_GET"] => array(4) {
["_xfRequestUri"] => string(17) "/account/upgrades"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "REMOVED"
["_xfResponseType"] => string(4) "json"
}
["_POST"] => array(0) {
}
}
 
Got some more errors. A different one too. Sent you a PM with the details. Thx
 
Hello, this is fixed in the next update, thank you ! ;)

Regards, SyTry
 
Solution
Top Bottom