The user FunnySmile reports that the notification bar is not loading, even after migrating to a new server and switching accounts. Despite successful requests and data return, the notifications do not display. supermathie suggests checking the JavaScript console for errors, which FunnySmile confirms shows no errors. Decorbuz asks about the hosting provider, and leonardo recommends testing in incognito mode and safe mode, which FunnySmile confirms works. Falco identifies the issue as leftover data from a removed plugin and provides a fix: run Notification.where(notification_type: [800,801,802]).limit(10000).destroy_all in the Rails console. FunnySmile initially tries the command in Redis, but Falco clarifies it must be run in the Rails console, which FunnySmile confirms resolves the issue.
I found that my notification bar could not load normally. I tried to migrate to a new server, but the problem still could not be solved. I tried to change another account again, but still could not open the notification bar normally.
The maximum number of notifications is set to 100.
Are any errors showing up in the Javascript console? They might show an error when the client attempts to load notifications that will help find the problem.
I tried to enter the console to run the command, but the console reported an error that the command was not available.
127.0.0.1:6379> Notification.where(notification_type: [800,801,802]).limit(10000).destroy_all
error:(error) ERR unknown command Notification.where(notification_type:, with args beginning with: [800,801,802]).limit(10000).destroy_all,