I"m trying to create a new plan on my development environment. Clicking “add new plan” does this:
TypeError: Cannot read property 'discourse_subscriptions_currency' of undefined
at Class.model (javascripts/discourse/routes/admin-plugins-discourse-subscriptions-products-show-plans-show:22)
at Class.deserialize (route.js:1040)
at UnresolvedRouteInfoByParam.getModel (router_js.js:895)
at router_js.js:691
at invokeCallback (rsvp.js:493)
at publish (rsvp.js:476)
at rsvp.js:19
at invoke (backburner.js:338)
at Queue.flush (backburner.js:229)
at DeferredActionQueues.flush (backburner.js:426)
and also
Error while processing route: adminPlugins.discourse-subscriptions.products.show.plans.show Cannot read property 'discourse_subscriptions_currency' of undefined TypeError: Cannot read property 'discourse_subscriptions_currency' of undefined
at Class.model (javascripts/discourse/routes/admin-plugins-discourse-subscriptions-products-show-plans-show:22:44)
I can’t tell if this is some issue with my setup or . . . something else. This works in the console started with the same ENV settings (of stripe keys and such):
Aha. Found the other place and that was what was making it not present plans for sale; I thought I was going crazy. There’s another instance in s-show.js.es6, but you’ll find it the same way I did.
Oh, and also a Discourse.User.current().username.toLowerCase(), which I guess should be this.current_user.username.toLowerCase()?