# Error when clicking on Billing in user profile

**URL:** https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622
**Category:** Bug
**Tags:** subscriptions, whos-online
**Created:** [October 12, 2024, 9:44pm UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622 "2024-10-12T21:44:36Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![RCheesley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcheesley/32/455409_2.png) [@RCheesley](https://meta.discourse.org/u/RCheesley)
#### Post date: [October 12, 2024, 9:44pm UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/1 "2024-10-12T21:44:36Z")

</div>

Hi folks!

I have the subscriptions plugin up and running smoothly so far on a self-hosted discourse which I’m about to launch, however I just happened across the Billing tab and figured I should check what that looks like. I’d signed up myself but using a 100% off coupon so I think I should have something to see there.

When I go to the billing tab, I get an error message, then when I click try again, I’m seeing a warning that there was an error loading route due to the whos online plugin.

Screencast: [Untitled Video October 12, 2024 10:41 PM](https://app.screencastify.com/v3/watch/KjtSTZ2Z72bp7uRRqLXJ)

I’m not sure how to go about troubleshooting this, might be a quick fix but thought someone here might know!

Using:  
Discourse version 3.4.0.beta3-dev  
Subscriptions version 2.8.1  
Whos online version 2.0

Thanks in advance!

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [October 13, 2024, 8:02am UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/2 "2024-10-13T08:02:13Z")

</div>

Hi,

sorry to hear your troubles, but I suspect we might have fixed it last week, but its not yet deployed to your instance. Can you try to disable your ad-block if you have any and see if it works please?

---

<div class="post-metadata">

### Author: ![RCheesley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcheesley/32/455409_2.png) [@RCheesley](https://meta.discourse.org/u/RCheesley)
#### Post date: [October 13, 2024, 9:44am UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/3 "2024-10-13T09:44:14Z")

</div>

Thanks for the speedy response, I’m not using any ad blocking tools.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 14, 2024, 12:34am UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/4 "2024-10-14T00:34:30Z")

</div>

Thanks Ruth, is this still persisting, I just kicked off another deploy of your site in case it fixes it. (should be live in 20 mins)

If it is still persisting let us know, we will get it sorted.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [October 21, 2024, 10:49am UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/5 "2024-10-21T10:49:00Z")

</div>

@RCheesley I decided to try a real subscription and it works fine. I have also been able to cancel it.

Let me know if you see another issue. Maybe it’s something related to the 100% coupon? But I can confirm that people can subscribe.

---

<div class="post-metadata">

### Author: ![RCheesley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcheesley/32/455409_2.png) [@RCheesley](https://meta.discourse.org/u/RCheesley)
#### Post date: [October 21, 2024, 3:49pm UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/7 "2024-10-21T15:49:41Z")

</div>

I don’t know, it’s weird - I still can’t access the billings tab - this is what I see:

 ![This is an image of a computer screen displaying a support page with an option to report an error, and additional information about community contributions. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/a/2/7a280ad4676309d447f15fb6c0aeab88dc8c3b10.png)

I guess it could be an issue if I wanted to upgrade perhaps, or just see when I signed up etc.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [October 21, 2024, 9:27pm UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/10 "2024-10-21T21:27:21Z")

</div>

I tried installing the whos-online plugin locally along with the subscription plugin but I currently can’t replicate this.

Could you try disabling the whos-online plugin and see if that makes a difference? Just trying to track down where the issue might be.

---

<div class="post-metadata">

### Author: ![RCheesley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcheesley/32/455409_2.png) [@RCheesley](https://meta.discourse.org/u/RCheesley)
#### Post date: [October 21, 2024, 10:02pm UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/11 "2024-10-21T22:02:28Z")

</div>

I did try that too, and I didn’t get the error about that being the cause of it, but I still got the error message.

Ruth

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [October 22, 2024, 4:55pm UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/12 "2024-10-22T16:55:41Z")

</div>

I’m still having a hard time replicating this locally, so could you show me what you have in your browser console when loading that page? Maybe it will have something useful in it.

The network tab for “subscriptions” should look something like this:

 ![CleanShot 2024-10-22 at 10.47.53@2x](https://global.discourse-cdn.com/meta/original/4X/6/5/5/655fe97438529cbf0a4675345d4976cad3053e37.png)

with a response of:

 ![CleanShot 2024-10-22 at 10.48.30@2x](https://global.discourse-cdn.com/meta/original/4X/a/8/0/a80adb8b617a56d3a107d39676ce3c28227a1063.png)

Then can you also post your console tab? There may be several yellow warnings, but I’m mostly interested if there are any red errors:

 ![CleanShot 2024-10-22 at 10.49.36@2x](https://global.discourse-cdn.com/meta/original/4X/4/f/5/4f55175a94b86b9c131d0e4e774be3cf59654658.png)

I’m also curious if the admin subscription page loads? You can visit this url `/admin/plugins/discourse-subscriptions/products` and then click on the subscriptions tab.

 ![CleanShot 2024-10-22 at 10.55.06@2x](https://global.discourse-cdn.com/meta/original/4X/7/d/e/7de6ba93dfcf8ae544dfc0a9a505e6e98523689b.png)

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 27, 2024, 6:57am UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/13 "2024-10-27T06:57:25Z")

</div>

Hello 👋

Not sure if this is related, but we had the same problem a few days ago. I haven’t had time to analyze the problem, but my best guess is that it happens when we run out of memory.

A little context: According to the basic set up, it is used on Vultr’s HF server (4gb ram) and YJIT is also turned on. This works perfectly in general situations. The Who’s online plugin is also installed and AI checks posts, etc… But the subscription plugin is not installed. However, a few days ago, when we experienced this error, there was an increased use because we organized a fundraise for one of our member and there was much more interaction than usual. Which presumably overloaded the server. The user routes were not loaded and we experienced the above error. It also showed us that the problem is with the who’s online plugin. At that point, I turned off the AI ​​automatic post check because that also didn’t work well on that situation and presumably that helped to get things working again.

I checked the CPU usage and it wasn’t high enough to cause this. So I think lack of memory may have caused this problem for us.

---

<div class="post-metadata">

### Author: ![RCheesley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcheesley/32/455409_2.png) [@RCheesley](https://meta.discourse.org/u/RCheesley)
#### Post date: [October 28, 2024, 9:00am UTC](https://meta.discourse.org/t/error-when-clicking-on-billing-in-user-profile/330622/14 "2024-10-28T09:00:28Z")

</div>

I’m able to access the admin subscription page no problem at all. I’ll see if I can spot anything in the console when I’m at the computer.
