Solved BUG: [Xen-Soluce] Upgrade Coupons 2.0.2 Fix 3

djbaxter

Licensed
Licensed
Upgrade Coupons
Recurring Subscription
Joined
Mar 10, 2020
Messages
32
Reaction score
7
  • Recently installed [Xen-Soluce] Upgrade Coupons 2.0.2 Fix 3
  • No coupons yet defined (installed for future use)
  • Error every time there's an upgrade
Code:
Server error log

    TypeError: Argument 2 passed to XF\Service\User\Upgrade::__construct() must be an instance of XF\Entity\UserUpgrade, null given, called in /home/{domain}/public_html/src/XF/Container.php on line 270 src/XF/Service/User/Upgrade.php:32

    Generated by: Unknown account Jul 13, 2020 at 4:39 AM

Stack trace

#0 src/XF/Container.php(270): XF\Service\User\Upgrade->__construct(Object(XF\Pub\App), NULL, Object(xenMade\TPM\XF\Entity\User))
#1 src/XF/App.php(1576): XF\Container->createObject('XF\\Service\\User...', Array)
#2 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\User...', Array, Object(XF\Container))
#3 src/XF/App.php(2782): XF\Container->create('service', 'XF:User\\Upgrade', Array)
#4 src/XF/Purchasable/UserUpgrade.php(142): XF\App->service('XF:User\\Upgrade', NULL, Object(xenMade\TPM\XF\Entity\User))
#5 src/addons/XenSoluce/UpgradeCoupons/XF/Purchasable/UserUpgrade.php(92): XF\Purchasable\UserUpgrade->completePurchase(Object(XF\Payment\CallbackState))
#6 src/XF/Payment/AbstractProvider.php(172): XenSoluce\UpgradeCoupons\XF\Purchasable\UserUpgrade->completePurchase(Object(XF\Payment\CallbackState))
#7 payment_callback.php(63): XF\Payment\AbstractProvider->completeTransaction(Object(XF\Payment\CallbackState))
#8 {main}

Request state

array(4) {
  ["url"] => string(40) "/payment_callback.php?_xfProvider=paypal"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["_xfProvider"] => string(6) "paypal"
  }
  ["_POST"] => array(28) {
    ["transaction_subject"] => string(79) "Account upgrade: LocalU Forum Access + Experts Guide to Local SEO ({member name})"
    ["payment_date"] => string(25) "04:07:31 Jul 11, 2020 PDT"
    ["txn_type"] => string(14) "subscr_payment"
    ["subscr_id"] => string(14) "I-H60K7585F8R8"
    ["last_name"] => string(5) "Thorn"
    ["residence_country"] => string(2) "AU"
    ["item_name"] => string(79) "Account upgrade: LocalU Forum Access + Experts Guide to Local SEO ({member name})"
    ["payment_gross"] => string(6) "149.00"
    ["mc_currency"] => string(3) "USD"
    ["business"] => string(21) "{staff email}
    ["payment_type"] => string(7) "instant"
    ["protection_eligibility"] => string(8) "Eligible"
    ["verify_sign"] => string(56) "AP4N5UUZZ-qWEbS6G8I3PN3ffOnEAcKJ5QKXauwcnSlGnDr.UufzZhX5"
    ["payer_status"] => string(8) "verified"
    ["payer_email"] => string(22) "{member email}"
 
All right. I think I need to hear back from that member in Australia to find out what it is he's been trying to do. That should provide more information.

I'll get back to you.
 
Update: I have someone else about to do an upgrade.

For now, I have uninstalled your add-on. If everythingh still works without the add-on, we will know that's where the problem is. If I still get errors, we'll know it's something else.

Either way, I will update you further.
 
Hello

it depends, if it's the same subscription.

Regards, CRUEL-MODZ
 
Update:

It appears that that member is trying to upgrade or renew the old upgrade which no longer exists. It would seem it's not your add-on at all but an issue with PayPal trying to renew and failing since that upgrade package no longer exists.
 
Hello,

the error appeared, with the same subscription.
I keep this conversation in case if it happens again, but visibly it does not come from my addon

Regards, CRUEL-MODZ
 
No I don't think your addon is the problem. This was coming from PayPal. I think we've sorted it out now.

Thank you for your patience. :)
 
Thanks to you!
We remain at your disposal if you have any question, or possible BUG!
 
Top Bottom