# User notifications "all" is empty, but responses, likes, etc have items

**URL:** https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351
**Category:** Support
**Created:** [January 31, 2020, 11:00pm UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351 "2020-01-31T23:00:28Z")
**Posts on this page:** 8
**Page:** 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: [January 31, 2020, 11:00pm UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/1 "2020-01-31T23:00:28Z")

</div>

I got a report that a user’s notifications would load when clicking on the avatar. (It’s a recent upgrade running 2.4.0.beta10). There is a single non-standard plugin, but it doesn’t seem likely to be the cause and the issue is affecting only one user (at least that we know of). (And then I did an upgrade without my plugin and that didn’t fix it.) `safe-mode` didn’t help.

When going to `/u/username/notifications` for one particular user no notifications are shown, but clicking on “responses”, “likes” and so on shows items in each of those types of notifications. I went into `psql` and did a `reindex table notifications` without error.

Clicking the avatar gets this error in the javascript console:

```
_application-4715c32620ba9b83af00144510f68ca0f0bae8f745edf2339e3f249ceee88c3f.js:77240 Uncaught TypeError: Cannot read property 'dasherize' of undefined

```

Looking at the code,

```
      return [this.attach(notificationName.dasherize() + "-notification-item", attrs, {}, { fallbackWidgetName: "default-notification-item" }), (0, _virtualDom.h)("span.time", (0, _node.dateNode)(attrs.created_at))];

```

it appears to me (and this could be wildly off base) that the issue is that it’s getting an error or nil/null/empty when getting the notifications?

I can get the user notifications in rails without incident:

```plaintext
 pry(main)> Notification.where(user_id: 870).count
=> 372
# this also returns stuff:
u=User.find(870)
Notification.recent_report(u)

```

I’m out of ideas.

---

<div class="post-metadata">

### Author: ![Raj\_Rathore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raj_rathore/32/155320_2.png) [@Raj\_Rathore](https://meta.discourse.org/u/Raj_Rathore)
#### Post date: [May 8, 2020, 10:45am UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/2 "2020-05-08T10:45:36Z")

</div>

@pfaffman Have you figured out this issue? I’m also having this same issue.

> [@Cloudflare or plugins breaking my Discourse instance?](https://meta.discourse.org/t/cloudflare-or-plugins-breaking-my-discourse-instance/149711/3):
>
> Yes, I have and it was working fine until the recent beta update. And it works fine for the most part as well. Just notifications are causing issues, it makes infinite number of requests, every few seconds. And here is my console And here’s the file opened

---

<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: [May 8, 2020, 7:02pm UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/3 "2020-05-08T19:02:12Z")

</div>

Sorry. I don’t remember either fixing it or that it’s still broken, and I don’t recall where it was. 🤷‍♂️

---

<div class="post-metadata">

### Author: ![Raj\_Rathore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raj_rathore/32/155320_2.png) [@Raj\_Rathore](https://meta.discourse.org/u/Raj_Rathore)
#### Post date: [May 8, 2020, 7:24pm UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/4 "2020-05-08T19:24:59Z")

</div>

Ok. So far I have tried everything, removed all unofficial plugins, removed Cloudflare, rebuilt several times by now… cleared browser storage… but for some users, the issue still persists and on the same device it doesn’t occur for other users. And the error message I’m seeing is exactly the same as yours. Then I tried my mobile phone and it works. I guess that’s why you don’t remember fixing it. I’m not sure if it’s caused by some plugin or if it’s only a local device issue. I hope that it’s happening on my desktop only 🙂

---

<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: [May 8, 2020, 8:36pm UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/5 "2020-05-08T20:36:51Z")

</div>

Does it happen with all browser extensions removed (incognito mode)?

---

<div class="post-metadata">

### Author: ![Raj\_Rathore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raj_rathore/32/155320_2.png) [@Raj\_Rathore](https://meta.discourse.org/u/Raj_Rathore)
#### Post date: [May 9, 2020, 4:26am UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/6 "2020-05-09T04:26:12Z")

</div>

yes, It happens in incognito as well but not as often, maybe my hard disk is responsible for it and amount storage use and the quota is different probably. here’s a screenshot in incognito mode. I shouldn’t worry about this issue if it’s happening only on my machine 🤔

 ![Screenshot 2020-05-09 at 9.52.35 AM](https://global.discourse-cdn.com/meta/original/3X/7/6/76b5d8bc19277ad2e89f4158e24464f42684d80a.png)

---

<div class="post-metadata">

### Author: ![Raj\_Rathore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raj_rathore/32/155320_2.png) [@Raj\_Rathore](https://meta.discourse.org/u/Raj_Rathore)
#### Post date: [May 10, 2020, 7:17pm UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/7 "2020-05-10T19:17:20Z")

</div>

@pfaffman Readding discourse-follow plugin solved the issue for me 🙂

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 10, 2020, 8:14pm UTC](https://meta.discourse.org/t/user-notifications-all-is-empty-but-responses-likes-etc-have-items/140351/8 "2020-05-10T20:14:22Z")

</div>


