craftcms / stripe

Sync and extend Stripe products and subscriptions.
MIT License
5 stars 0 forks source link

Issue with changing from Solo to Pro after install #4

Closed jamie-jenks closed 4 months ago

jamie-jenks commented 4 months ago

Description

Craft displays an error when attempting to go to the URL: "/admin/myaccount" after swapping from Solo to Pro.

Error:

Unknown Method – yii\base\UnknownMethodException

Calling unknown method: craft\elements\User::getStripeCustomers()

Steps to reproduce

  1. Install Craft as a Solo license
  2. Install Stripe
  3. Configure Stripe
  4. Realise you're running Solo instead of Pro
  5. Swap to Pro
  6. Visit: "/admin/myaccount" & the error will show

Additional info

i-just commented 4 months ago

Hi, thanks for reaching out! I can’t replicate this behaviour. Could you please clear your template (or all) caches and see if the issue persists?

jamie-jenks commented 4 months ago

@i-just hey,

I tried the above suggestions and still get the error. Do you have an email address I can send my composer and DB to? That might help reproduce.

i-just commented 4 months ago

Hi @jamie-jenks, can you please send it to support@craftcms.com? Thanks!

i-just commented 4 months ago

@jamie-jenks, thanks again for sending over the files. I tracked down the cause of this issue and raised a PR for it. You might also run into a MariaDB-specific bug, which is also actioned on the same PR. Thanks again for reporting!

brandonkelly commented 4 months ago

Stripe 1.0.1 is out with the fix for this. Thanks again!