BryanV
(Bryan Van de ven)
22 يوليو 2024، 6:27م
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)
BryanV
(Bryan Van de ven)
23 يوليو 2024، 10:42م
2
Alternatively, should this be reported as a bug?
إعجابَين (2)
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 إعجابات
BryanV
(Bryan Van de ven)
28 يوليو 2024، 8:28م
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)
BryanV
(Bryan Van de ven)
28 يوليو 2024، 8:40م
9
That was exactly the problem, thanks @Moin
3 إعجابات
nat
(Natalie T)
تم إغلاقه في
1 أغسطس 2024، 11:57ص
11
This topic was automatically closed after 3 days. New replies are no longer allowed.
Moin
21 أغسطس 2024، 6:24م
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)
21 أغسطس 2024، 6:30م
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)
BryanV
(Bryan Van de ven)
21 أغسطس 2024، 6:59م
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 إعجابات