Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
Possibly we were hit by MDL-75582 "Activities with passing grade and only require grade completion (not passing) are displaying the wrong status". Oddly 4.1 was safe. That explains why we ran in to this. It broke the rhythm of a fast moving series of half-weekly workshops with interrelated, guarded with activity completion and restrictions. We were doing it in Moodle 4.1 LTS so long, never expected 4.5 LTS to break it.
 
Not going to investigate now. Too late.
 
CLOSED without further investigation.
Picture of Particularly helpful Moodlers Picture of Translators
I notice that the 'admin' doesn't get this error. Only the teacher. When the 'admin' Log in as the teacher, then he gets the error. In all cases, visit the course and then go to the question bank.

I already purged all caches. Didn't help. 'admin' can see all questions means the data is somehow not broken. Does it say more?
Picture of Particularly helpful Moodlers Picture of Translators
I started looking at the application logic resp. how the database is built. I emptied a dev Moodle; dropped the database and let Moodle create a new one. Unfortunately a 4.5 LTS because the PHP doesn't go with 4.1 LTS where the prod Moodle is, and just created a course and a quiz inside it. This is the content of the table question_categories:
 
Now stymied over the odd contextids. Context#Context_Level_constants knows only 10, 30, 40, 50, 70 and 80? Have they been extended somewhere along the line? Do you advise me to take a 4.1? The prod Moodle giving trouble is a 4.1.
Picture of Particularly helpful Moodlers Picture of Translators
I should add to that (sometimes?), when the GUI doesn't show the option to install since the plug-in is not (yet) declared compatible, one can take the "Download zip file" path and install the plug-in.
 
Anyway, all that is off-topic; none is under Git.
Picture of Particularly helpful Moodlers Picture of Translators
> if you are running Moodle 4.5, you can only install plugins that advertise themselves as having a version for Moodle 4.5.

True. One could say, the Moodle GUI tool for upgrade is conservative. A plug-in may be compatible with Moodle 4.5. But the tool won't allow it, unless it is marked as compatible with Moodle 4.5 (in the database and in the plug-in code).

On the plus side, the tool won't allow you to install outdated or incompatible plug-ins. And also looks after plug-in dependencies!
Average of ratings: Useful (1)