Bug An error occurs when a non-logged-in user makes a donation.

Status
Not open for further replies.

tomo1560

Customer
If a user who is not logged in makes a donation, the payment will be made, but an error will occur.

Code:
TypeError: Argument 1 passed to XF\Service\User\TempChange::applyGroupChange() must be an instance of XF\Entity\User, null given, called in /home/minecra7/forum.minecraft.study/src/addons/DBTech/Donate/Entity/Donation.php on line 242 src/XF/Service/User/TempChange.php:48
Generated by: Unknown account 2021-01-16 at 09:21

Stack trace
#0 src/addons/DBTech/Donate/Entity/Donation.php(242): XF\Service\User\TempChange->applyGroupChange(NULL, 'dbtechDonate-33', Array, 'dbtechDonate-1', NULL)
#1 src/addons/DBTech/Donate/Entity/Donation.php(315): DBTech\Donate\Entity\Donation->applyUserGroupChange()
#2 src/XF/Mvc/Entity/Entity.php(1266): DBTech\Donate\Entity\Donation->_postSave()
#3 src/addons/DBTech/Donate/Purchasable/Donation.php(258): XF\Mvc\Entity\Entity->save()
#4 src/XF/Payment/AbstractProvider.php(172): DBTech\Donate\Purchasable\Donation->completePurchase(Object(XF\Payment\CallbackState))
#5 payment_callback.php(63): XF\Payment\AbstractProvider->completeTransaction(Object(XF\Payment\CallbackState))
#6 {main}

Request state
array(4) {
  ["url"] => string(40) "/payment_callback.php?_xfProvider=stripe"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["_xfProvider"] => string(6) "stripe"
  }
  ["_POST"] => array(0) {
  }
}
1610758158839.png
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future release (3.3.2).

Change log:
Fix: Fix a server error with guest donations when temporary user group changes were used

 
Hello @tomo1560,

We hope your ticket regarding DragonByte Donate has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @tomo1560,

As we have not heard back from you, your ticket regarding DragonByte Donate has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Donate

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,571
Customer rating
5.00 star(s) 1 ratings
Back
Top