Solved Different Errors after trying 100%

kailew

Licensed
Licensed
Upgrade Coupons
SEO Optimization
Joined
Mar 14, 2023
Messages
5
Reaction score
0
Hello,
I've purchased the add on yesterday and in my first test I've got an error:
  • TypeError: Argument 1 passed to XF\Repository\Purchase::insertPurchaseRequest() must be an instance of XF\Purchasable\Purchase, bool given, called in /kunden/portugalinks.de/xenforo2.2/public_html/src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php on line 53
  • src/XF/Repository/Purchase.php:9
  • Generiert von: laurelin
  • 14 März 2023 um 22:17
[HEADING=2]Stack-Trace[/HEADING] #0 src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php(53): XF\Repository\Purchase->insertPurchaseRequest(false) #1 src/XF/Mvc/Dispatcher.php(352): XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase->actionIndex(Object(XF\Mvc\ParameterBag)) #2 src/XF/Mvc/Dispatcher.php(259): 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(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase), NULL) #4 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #5 src/XF/App.php(2483): XF\Mvc\Dispatcher->run() #6 src/XF.php(524): XF\App->run() #7 index.php(20): XF::runApp('XF\\Pub\\App') #8 {main} [HEADING=2]Status der Anfrage[/HEADING] array(4) { ["url"] => string(42) "/purchase/user_upgrade/?user_upgrade_id=38" ["referrer"] => string(40) "https://portugalforum.org/Konto/upgrades" ["_GET"] => array(1) { ["user_upgrade_id"] => string(2) "38" } ["_POST"] => array(8) { ["_xfToken"] => string(8) "********" ["duration"] => string(2) "no" ["coupon"] => string(7) "test123" ["coupon_valid"] => string(1) "1" ["price"] => string(1) "0" ["_xfRequestUri"] => string(15) "/Konto/upgrades" ["_xfWithData"] => string(1) "1" ["_xfResponseType"] => string(4) "json" } }

and also:
  • ErrorException: [E_NOTICE] Trying to get property 'handler' of non-object
  • src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php:52
  • Generiert von: laurelin
  • 14 März 2023 um 22:17
[HEADING=2]Stack-Trace[/HEADING] #0 src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php(52): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/kunden/portuga...', 52, Array) #1 src/XF/Mvc/Dispatcher.php(352): XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase->actionIndex(Object(XF\Mvc\ParameterBag)) #2 src/XF/Mvc/Dispatcher.php(259): 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(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase), NULL) #4 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #5 src/XF/App.php(2483): XF\Mvc\Dispatcher->run() #6 src/XF.php(524): XF\App->run() #7 index.php(20): XF::runApp('XF\\Pub\\App') #8 {main} [HEADING=2]Status der Anfrage[/HEADING] array(4) { ["url"] => string(42) "/purchase/user_upgrade/?user_upgrade_id=38" ["referrer"] => string(40) "https://portugalforum.org/Konto/upgrades" ["_GET"] => array(1) { ["user_upgrade_id"] => string(2) "38" } ["_POST"] => array(8) { ["_xfToken"] => string(8) "********" ["duration"] => string(2) "no" ["coupon"] => string(7) "test123" ["coupon_valid"] => string(1) "1" ["price"] => string(1) "0" ["_xfRequestUri"] => string(15) "/Konto/upgrades" ["_xfWithData"] => string(1) "1" ["_xfResponseType"] => string(4) "json" } }

and also for
  • Provider
  • Payment Profile
  • Cost

Best regards
 
and also another question: Would it be possible to generate unique codes like "xyz-123-abc-456" which are for single use only?
 
Regards, CRUEL-MODZ

Hello,
I've purchased the add on yesterday and in my first test I've got an error:
  • TypeError: Argument 1 passed to XF\Repository\Purchase::insertPurchaseRequest() must be an instance of XF\Purchasable\Purchase, bool given, called in /kunden/portugalinks.de/xenforo2.2/public_html/src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php on line 53
  • src/XF/Repository/Purchase.php:9
  • Generiert von: laurelin
  • 14 März 2023 um 22:17
[HEADING=2]Stack-Trace[/HEADING] #0 src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php(53): XF\Repository\Purchase->insertPurchaseRequest(false) #1 src/XF/Mvc/Dispatcher.php(352): XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase->actionIndex(Object(XF\Mvc\ParameterBag)) #2 src/XF/Mvc/Dispatcher.php(259): 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(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase), NULL) #4 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #5 src/XF/App.php(2483): XF\Mvc\Dispatcher->run() #6 src/XF.php(524): XF\App->run() #7 index.php(20): XF::runApp('XF\\Pub\\App') #8 {main} [HEADING=2]Status der Anfrage[/HEADING] array(4) { ["url"] => string(42) "/purchase/user_upgrade/?user_upgrade_id=38" ["referrer"] => string(40) "https://portugalforum.org/Konto/upgrades" ["_GET"] => array(1) { ["user_upgrade_id"] => string(2) "38" } ["_POST"] => array(8) { ["_xfToken"] => string(8) "********" ["duration"] => string(2) "no" ["coupon"] => string(7) "test123" ["coupon_valid"] => string(1) "1" ["price"] => string(1) "0" ["_xfRequestUri"] => string(15) "/Konto/upgrades" ["_xfWithData"] => string(1) "1" ["_xfResponseType"] => string(4) "json" } }

and also:
  • ErrorException: [E_NOTICE] Trying to get property 'handler' of non-object
  • src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php:52
  • Generiert von: laurelin
  • 14 März 2023 um 22:17
[HEADING=2]Stack-Trace[/HEADING] #0 src/addons/XenSoluce/UpgradeCoupons/XF/Pub/Controller/Purchase.php(52): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/kunden/portuga...', 52, Array) #1 src/XF/Mvc/Dispatcher.php(352): XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase->actionIndex(Object(XF\Mvc\ParameterBag)) #2 src/XF/Mvc/Dispatcher.php(259): 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(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\UpgradeCoupons\XF\Pub\Controller\Purchase), NULL) #4 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #5 src/XF/App.php(2483): XF\Mvc\Dispatcher->run() #6 src/XF.php(524): XF\App->run() #7 index.php(20): XF::runApp('XF\\Pub\\App') #8 {main} [HEADING=2]Status der Anfrage[/HEADING] array(4) { ["url"] => string(42) "/purchase/user_upgrade/?user_upgrade_id=38" ["referrer"] => string(40) "https://portugalforum.org/Konto/upgrades" ["_GET"] => array(1) { ["user_upgrade_id"] => string(2) "38" } ["_POST"] => array(8) { ["_xfToken"] => string(8) "********" ["duration"] => string(2) "no" ["coupon"] => string(7) "test123" ["coupon_valid"] => string(1) "1" ["price"] => string(1) "0" ["_xfRequestUri"] => string(15) "/Konto/upgrades" ["_xfWithData"] => string(1) "1" ["_xfResponseType"] => string(4) "json" } }

and also for
  • Provider
  • Payment Profile
  • Cost

Best regards
What do you use for payment?

Regards, CRUEL-MODZ
 
Hello,

Ok, I'll do an update, that should fix the problem!

Regards, CRUEL-MODZ
 
and also another question: Would it be possible to generate unique codes like "xyz-123-abc-456" which are for single use only?
Currently no, you can put a coupon for use only but you can't generate codes
 
Top Bottom