Commerce: PHP error in PaymentsController when $currentUser is null

Created on 23 Mar 2020  路  2Comments  路  Source: craftcms/commerce

Hitting the following PHP error when making a payment as a guest on Commerce 3.0.12.

Call to a member function can() on null

https://github.com/craftcms/commerce/blob/0b28dbca9b9887ce567c47c3920f5b2660ddf5b5/src/controllers/PaymentsController.php#L93

馃悶 bug 馃挸 payments 馃洅 checkout

All 2 comments

Hi @samhibberd

Thanks for pointing this out, this is currently being looked at. We will keep you updated on the progress.

Thanks.

This has been updated and will be included in the upcoming 3.1 release.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings