• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Payment provider. CallbackState::PAYMENT_RECEIVED

Affected version
2.0.0 Beta 2

Jumuro

Active member
#1
After successful completion of payment in the server error log appears:
Code:
ErrorException: Template error: Cannot call method canUseContactForm on a non-object (NULL) src/XF/Template/Templater.php:833
Stack trace
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/...', 833, Array)
#1 /var/www/src/XF/Template/Templater.php(833): trigger_error('Cannot call met...', 512)
#2 /var/www/internal_data/code_cache/templates/l2/s1/email/payment_received_receipt_user_upgrade.php(24): XF\Template\Templater->method(NULL, 'canUseContactFo...', Array)
#3 /var/www/src/XF/Template/Templater.php(1133): XF\Template\Templater->{closure}(Object(XF\Mail\Templater), Array)
#4 /var/www/src/XF/Mail/Mailer.php(157): XF\Template\Templater->renderTemplate('payment_receive...', Array)
#5 /var/www/src/XF/Mail/Mail.php(210): XF\Mail\Mailer->renderMailTemplate('payment_receive...', Array, Object(XF\Language), Object(XF\Entity\User))
#6 /var/www/src/XF/Mail/Mail.php(248): XF\Mail\Mail->renderTemplate()
#7 /var/www/src/XF/Mail/Mail.php(256): XF\Mail\Mail->getSendableMessage()
#8 /var/www/src/XF/Purchasable/AbstractPurchasable.php(110): XF\Mail\Mail->send()
#9 /var/www/src/XF/Payment/AbstractProvider.php(157): XF\Purchasable\AbstractPurchasable->sendPaymentReceipt(Object(XF\Payment\CallbackState))
#10 /var/www/payment_callback.php(62): XF\Payment\AbstractProvider->completeTransaction(Object(XF\Payment\CallbackState))
#11 {main}
Upgrade account is successful.
The transaction log also.
But this error did not arise until Beta 2