# בעיה בהוספת תוכנית discourse-subscriptions

**URL:** <https://meta.discourse.org/t/trouble-adding-a-discourse-subscriptions-plan/191696>\
**Category:** Product Support\
**Tags:** subscriptions\
**Created:** [26 במאי,‏ 2021,‏ 2:10pm UTC](https://meta.discourse.org/t/trouble-adding-a-discourse-subscriptions-plan/191696 "2021-05-26T14:10:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [26 במאי,‏ 2021,‏ 2:10pm UTC](https://meta.discourse.org/t/trouble-adding-a-discourse-subscriptions-plan/191696/1 "2021-05-26T14:10:14Z")

</div>

I"m trying to create a new plan on my development environment. Clicking “add new plan” does this:

```plaintext
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

```plaintext
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):

```plaintext
> SiteSetting.discourse_subscriptions_currency
=> "USD"

```

I"m able to create and update products, but I’m not able to create a plan.

---

_[View the full topic](https://meta.discourse.org/t/trouble-adding-a-discourse-subscriptions-plan/191696)._
