BryanV
(Bryan Van de ven)
July 22, 2024, 6:27pm
1
After a recent update to 3.3.0.beta5-dev (a267c0727d ), I get this persistent warning/error in the Admin dashboard (refreshing does not help):
Note that as part of the update, I removed the old linked up plugin altogether, and now also everything is stated up to date:
Besides, this, linked in login is not even enabled at all:
How do I get this error message to go away?
1 Like
BryanV
(Bryan Van de ven)
July 23, 2024, 10:42pm
2
Alternatively, should this be reported as a bug?
2 Likes
This should be fixed when this is merged
discourse:main
← discourse:fix/problem-check-translation
opened 02:03AM - 28 Jul 24 UTC
### What is this fix?
We had a hard-coded problem check message using the `#m… essage` method. We removed support from this in core, so the translation is now showing as missing.
This fixes that by moving the translation to the locale file, and adds a test for it.
4 Likes
BryanV
(Bryan Van de ven)
July 28, 2024, 8:28pm
7
Thanks @JammyDodger FYI I had tried updating again to see if that would help, before I saw this message. Usually updating is a painless process, but whatever commit I ended up on seems completely broken in some ways. The admin page is completely inaccessible and some pages mis-render. I tried updating again from the shell console, and the issues persist. Things are at this commit:
commit f7855481fb68b0726753a35952635196a65fd459 (HEAD -> main, origin/main, origin/HEAD)
Is there a “known good commit” before this I can revert to? Can I just check out that earlier hash in the shell and then rebuild or are there other steps to roll back?
1 Like
BryanV
(Bryan Van de ven)
July 28, 2024, 8:40pm
9
That was exactly the problem, thanks @Moin
3 Likes
nat
(Natalie T)
Closed
August 1, 2024, 11:57am
11
This topic was automatically closed after 3 days. New replies are no longer allowed.
Moin
August 21, 2024, 6:24pm
13
I guess it is the same bug as
Hello, @techwithanirudh !
We recently revamped our problem check system to support more use cases, and we currently do not have a mechanism to clear notices from plugins when they are uninstalled. It’s something we’re working on.
For now, you can try the following console commands to clear the notices:
ProblemCheckTracker.where(identifier: "discourse_automation").delete_all
AdminNotice.where(identifier: "discourse_automation").delete_all
BryanV
(Bryan Van de ven)
August 21, 2024, 6:30pm
14
I ran the commands from the other topic (I think, I am not familiar with rails):
root@bokeh-discourse:~# cd /var/discourse
root@bokeh-discourse:/var/discourse# ./launcher enter app
x86_64 arch detected.
root@bokeh-discourse-app:/var/www/discourse# rails c
[1] pry(main)> ProblemCheckTracker.where(identifier: "discourse_automation").delete_all
[1] pry(main)> ProblemCheckTracker.where(identifier: "discourse_automation").delete_all
=> 0
[2] pry(main)> AdminNotice.where(identifier: "discourse_automation").delete_all
[2] pry(main)> AdminNotice.where(identifier: "discourse_automation").delete_all
=> 0
[3] pry(main)> exit
root@bokeh-discourse-app:/var/www/discourse#
But the error message still remains on the admin panel (even after a refresh).
Those commands would target the Automation plugin messages. You would need to swop that out for the LinkedIn plugin name (discourse-linkedin-auth
, I think)
1 Like
BryanV
(Bryan Van de ven)
August 21, 2024, 6:59pm
16
Hrm, I tried a variety of variations on that (based on the other using underscores rather than dashes, and the admin message splitting “linked” and “in”) but they all return 0 records and the message still appears:
[5] pry(main)> AdminNotice.where(identifier: "discourse-linkedin-auth").delete_all
=> 0
[6] pry(main)> AdminNotice.where(identifier: "discourse_linkedin_auth").delete_all
=> 0
[7] pry(main)> AdminNotice.where(identifier: "discourse_linked_in_auth").delete_all
=> 0
[8] pry(main)> AdminNotice.where(identifier: "discourse-linked-in-auth").delete_all
=> 0
[3] pry(main)> ProblemCheckTracker.where(identifier: "discourse-linkedin-auth").delete_all
=> 0
[9] pry(main)> ProblemCheckTracker.where(identifier: "discourse_linkedin_auth").delete_all
=> 0
[10] pry(main)> ProblemCheckTracker.where(identifier: "discourse_linked_in_auth").delete_all
=> 0
[11] pry(main)> ProblemCheckTracker.where(identifier: "discourse-linked-in-auth").delete_all
Is there a way to look up or determine the proper identifier?
The answer may be in the screenshot. Try deprecated_linked_in_auth
3 Likes