I received a user upgrade and the usergroup switch and removal (from the adblocker group) worked as expected.
However, I have an error message in my log. It appears everything worked - so what does this mean?
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '71093-4' for key 'user_id_upgrade_id' src/XF/Db/AbstractStatement.php:230
Generated by: Unknown account Mar 25, 2025 at 11:21 PM
Stack trace
INSERT INTO xf_user_upgrade_active
(user_upgrade_id
, user_id
, start_date
, extra
, end_date
, purchase_request_key
, user_upgrade_record_id
, is_cancelled
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(83): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(219): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1572): XF\Db\AbstractAdapter->insert('xf_user_upgrade...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1300): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Service/User/UpgradeService.php(179): XF\Mvc\Entity\Entity->save(true, false)
#7 src/addons/Wutime/AdBlockTracker/XF/Service/User/Upgrade.php(12): XF\Service\User\UpgradeService->upgrade()
#8 src/XF/Purchasable/UserUpgrade.php(184): Wutime\AdBlockTracker\XF\Service\User\Upgrade->upgrade()
#9 src/XF/Payment/AbstractProvider.php(212): XF\Purchasable\UserUpgrade->completePurchase(Object(XF\Payment\CallbackState))
#10 payment_callback.php(67): XF\Payment\AbstractProvider->completeTransaction(Object(XF\Payment\CallbackState))
#11 {main}
Request state
array(4) {
["url"] => string(54) "/forum/payment_callback.php?_xfProvider=stripe"
["referrer"] => bool(false)
["_GET"] => array(1) {
["_xfProvider"] => string(6) "stripe"
}
["_POST"] => array(0) {
}
}