Solved Server error log

fords8

Licensed
Licensed
Gamer Banners
User Moods Manager
Upgrade Coupons
User Upgrade Duration
User Upgrade Pro
Credit System
Custom Prefixes & Banners
Draft System
Joined
May 27, 2023
Messages
15
Reaction score
13
Got one of these errors:
1736255167005.png
Code:
Error: Call to a member function setIDuud() on null src/addons/XenSoluce/UpgradeCoupons/XF/Purchasable/UserUpgrade.php:27
Generated by: Unknown account Jan 7, 2025 at 3:45 AM

Stack trace
#0 src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php(51): XenSoluce\UpgradeCoupons\XF\Purchasable\UserUpgrade->getPurchaseFromRequest(Object(XF\Http\Request), Object(Andrew\ModeratorPanel\XF\Entity\User), NULL)
#1 src/XF/Mvc/Dispatcher.php(362): XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase->actionIndex(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Index', Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase), NULL)
#3 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase), NULL)
#4 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#6 src/XF.php(806): XF\App->run()
#7 index.php(23): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state
array(4) {
  ["url"] => string(23) "/purchase/user_upgrade/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

It was only one. I am thinking maybe someone tryed to an coupon. But I have not released any yet to the public.
 
Last edited:
Solution
Hello

I wasn't able to reproduce the problem, but I've added a condition that checks if a variable is not null, so that should fix it.

Regards, CRUEL-MODZ
Hello

I wasn't able to reproduce the problem, but I've added a condition that checks if a variable is not null, so that should fix it.

Regards, CRUEL-MODZ
 
Solution
No issues have come up again. I would say this is solved. Thanks!
 
Back
Top Bottom