Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
Or, to put it differently, the additional plug-ins (in https://moodle.org/plugins/) are only loosly coupled to the Moodle core. It is easy to explain: the Moodle HQ can not force the plug-in developers to any kind of compatible versioning concept. OK, some Git back-flips were suggested in the General developer forum, which I am unable to follow. Therefore individual treatment is the only solution. Well, unless you maintain the plug-ins on the Moodle GUI (Site administration > Plugins > Install plugins). That one is very robust as far as Moodle versions and the plug-in versions are concerned - but then no Git.
Picture of Particularly helpful Moodlers Picture of Translators

To the Quiz insiders

Visiting the question bank oursite/question/edit.php?courseid=94 a teacher gets (under maximum debugging):

Coding error detected, it must be fixed by a programmer: Category id=2244 is already on the list - loop of categories detected.

More information about this error

Debug info:
Error code: codingerror×Dismiss this notification
Stack trace:
  • line 1327 of /lib/questionlib.php: coding_exception thrown
  • line 90 of /question/classes/bank/search/category_condition.php: call to question_categorylist()
  • line 77 of /question/classes/bank/search/category_condition.php: call to core_question\bank\search\category_condition->init()
  • line 814 of /question/classes/local/bank/view.php: call to core_question\bank\search\category_condition->__construct()
  • line 773 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->wanted_filters()
  • line 60 of /question/edit.php: call to core_question\local\bank\view->display()

The "More information" link points to https://docs.moodle.org/401/en/error/debug/codingerror.

The teacher says, she wanted to open a sub-category but deleted something by mistake.

Any insights on what could have gone wrong and how to repair the QB? (Have backups in the worst case, but need to know how this happened and not to lose a days work.) I'm trying to follow the steps the teacher has taken.

Moodle 4.1.18 (Build: 20250414), PHP 8.1.31, MariaDB 10.11.6

Average of ratings: -
Picture of Particularly helpful Moodlers Picture of Translators

Answering my own question:

Yes, https://github.com/catalyst/moodle-tool_encoded does the job. Ran on a clone and reduced the DB dump by 500 MB.

Still we decided to postpone running it on the production server. We'll revisit when the people are ready to test their courses.

Thread CLOSED.

Average of ratings: Useful (2)
Picture of Particularly helpful Moodlers Picture of Translators
Hi Petr and Marcus

Things moved too fast! Let me start from the beginning.

- No authentication
The user has to go through two screens:
 
Then a full-fledged user with username, firstname, lastname, email and a password hash is created with auth='none'. The owner can even change first- lastnames and email.
 
So it has the functionality I want. But having to fill those fields is not very much user friendly.
wink
 
Then Marcus' solution, the https://moodle.org/plugins/enrol_invitation, also has two screens: 
 
but only one has text fields.
 
https://dynamiccourseware.org/login/ is elegant since no data need to be typed. But it is always the same "Visitor". Not useful for me, I want the individual users/owners to appear in different sessions.
 
So, my original idea, mysite/login/ should immediately login as an invented login, would be the most user friendly, but has a flow. The manual logins then stay out.
 
So far the Invitation plug-in solution as in https://www.examulator.com/ai/o/ is the best out of those three. 
 
If somebody, Petr(?), is burning for a "weird" programming exercise, the Invitation solution without the second screen, would be perfect.
 
P.S. I must mention that there is also a self-registration with no e-mail confirmation. Which has the potential for continuity, if that is needed.