Closed RitterKnightCreative closed 3 years ago
Hi @RitterKnightCreative
Thank you for bringing this to our attention. We have pushed up a fix for this issue and will look to get a release out asap.
Thanks!
FYI this fix makes the plugin no longer compatible with Craft < 3.6 (the stated requirement in the readme and composer.json is 3.3.4.1 or higher). The $site->getName()
method was added in 3.6, prior to that you'd have to use $site->name
instead.
Good spot @elivz thanks for that. I wrongly assumed we had increased the cms version requirement.
The code has been updated to just reference ->name
which is compatible with versions 3.3.4
and upwards. In versions on or after 3.6
this will simply call the getName
method via a magic method. This will be refactored when the cms
requirement is updated.
Pushing out a patch for this now.
Thanks again!
Description
Upgraded from 1.2.0 to 1.2.2.
Getting a generic error message after clicking/tapping on any of the options: PayPal button, Pay Later or Debit/Credit Card.
Stack trace leads back to this:
Downgrading to 1.2.0 seems to solve the issue.
I noticed the code that was changed was here.
I'm not sure why my
Craft::$app->getConfig()->getGeneral()->siteName
would be null though? I noticed{{ siteName }}
from a Twig template works just fine but dumping out the general config it's null. It seems to be set just fine in the CP?Additional info