-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working inside course anymore #10
Comments
I reinstall precedent version of the plugin, and I still have the same bug. Here is what I change on our install (in chronological order)
I am sure that commander was normally working shortly after step 2. So I add a "stash block", create my first stash, add my first item, then paste a snippet code into the description of a "file" activity, then I pick it up (as a student, and as an admin=me). I did some stuff I can't even remember (I will check logs tomorrow), then I realise commander wasn't working anymore inside ANY course.I think it could be related to a filter. If you have an idea or question, I will be honored! |
Hi, When I go on the page "Site administration>Plugins>Search>Search areas", i can found the line: |
In Site administration>Plugins>Search, I can see that a setting is "Default: Search within enrolled courses only", and we don't have any enrolled sudent in any course of the "Template" category. |
Hi @r3g31rk, Thanks for your messages. Sorry for the delayed response. Can you describe in a few steps how I can replicate this scenario in a fresh Moodle 3.8.2? Maybe I can debug it, I expect there is some JS conflict. |
Hi Luuk, In a few steps:
I think it is related to "filters", which are used by the "stash block" (An uncommon task occured during that night on our Moodle instance: |
Thanks for the steps to replicate this bug. I tested it on my dev environment and don't see the issue. Can you check the output from Maybe it helps to turn on developer mode (temporary): To check the AJAX request, you can use developer tool inside the browser. See my screencast: |
Hi Luuk, When I run the command, Iget something like this {"admin":{"id":null,"name":"Site administration","link":"https://staging.gandalf.epitech.eu/admin/search.php","hidden":false,"haschildren":true,"children":[{"id":null,"name":"Notifications","link":"https://staging.gandalf.epitech.eu/admin/index.php","hidden":false,"haschildren":false},{"id":null,"name":"Registration","link":"https://staging.gandalf.epitech.eu/admin/registration/index.php","hidden":false,"haschildren":false},{"id":null,"name":"Moodle services","link":"https://staging.gandalf.epitech.eu/admin/settings.php?section=moodleservices","hidden":false,"haschildren":false},{"id":null,"name":"Advanced features","link":"https://staging.gandalf.epitech.eu/admin/settings.php?section=optionalsubsystems","hidden":false,"haschildren":false}, We already have the developper mode turned ON. I followed your advice by using "inspect" while using Commander:
|
Context not used correctly when in $courseid is provided. Tracker #10
I think I found the problem. Can you check if the latest version solves the issue? Wrong context was used when -- local_bs_badge_pool uses |
Hi Luuk, Sorry, we had quite a rush recently (new semester started few days ago). I just installed your latest version on our staging, and the issue is still here:
Remark (or clue?): with the old version of commander, I recently saw an error popup (something like "Local Commander: JS parsing error"), but I can't find out how to reproduce it |
Hello, and thank you Luuk for this amaaaaaaazing tool.
Since the upgrade to 3.8.2 (2019120900) (2019120900), it appears our shortcut (custom touch 222, instead of 192) is not working when we are inside a course. We have 3 category of courses (catA, catB, and Templates), the commander is not working anymore in the categories catA and catB. But still working inside the category Templates.
It is working as usual in any other pages (frontpage, dashboard, site administration...).
(remarks, could this be related, OR NOT, to the usage of the https://moodle.org/plugins/filter_shortcodes? I changed some settings recently, and I try to add my first stash and my first item. I think the bug appears after that. but I'm not sure anymore, I did a lot!)
The text was updated successfully, but these errors were encountered: