- Affected version
- 2.3
Cancelling a Stripe subscription leads to the following error... sometimes.
I am getting one of these every morning from a different member.
Code:
InvalidArgumentException: Unknown column purchase_request_key on XF:PaymentProvider src/XF/Mvc/Entity/Finder.php:1821
Stack trace
#0 src/XF/Mvc/Entity/Finder.php(623): XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn('purchase_reques...', true)
#1 src/XF/Mvc/Entity/Finder.php(287): XF\Mvc\Entity\Finder->columnSqlName('purchase_reques...', true)
#2 src/XF/Mvc/Entity/Finder.php(151): XF\Mvc\Entity\Finder->buildCondition('purchase_reques...', '9moZQtkJiHuEcD8...')
#3 src/XF/Payment/Stripe.php(543): XF\Mvc\Entity\Finder->where('purchase_reques...', '9moZQtkJiHuEcD8...')
#4 src/XF/Payment/Stripe.php(568): XF\Payment\Stripe->getSubscriberIdFromPurchaseRequest(Object(XF\Entity\PurchaseRequest))
#5 src/XF/Pub/Controller/PurchaseController.php(99): XF\Payment\Stripe->processCancellation(Object(XF\Pub\Controller\PurchaseController), Object(XF\Entity\PurchaseRequest), Object(XF\Entity\PaymentProfile))
#6 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionCancelRecurring(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'CancelRecurring', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\PurchaseController), NULL)
#8 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\PurchaseController), NULL)
#9 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#11 src/XF.php(802): XF\App->run()
#12 index.php(23): XF::runApp('XF\\Pub\\App')
#13 {main}
I am getting one of these every morning from a different member.