Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

That looks like something went badly wrong when upgrading 2.0 -> 2.1.

As part of that upgrade, the following should have happened:

  1. old question_attempts table renamed to question_usages
  2. new question_attempts table created
  3. extra columns added to question_attemps

It looks to me like steps 1. and 2. got missed out. I have no idea how that could have happened. You will need to investigate, and try to work out what did happen.

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If you look at the process_finish method in mod/quiz/attemptlib.php, you will see that you are wrong. quiz_save_best_grade is called before fire_state_transition_event. So, you should be able to get the score in the event handler.
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

"If I want to push my whole repository to our git-server so the files below "pmatch" are lost because there is a ".git" directory inside, isn't it?"

That statement is incorrect.

When you are in the top-level folder (moodle), then git there will see all the changes in subfolders, including question/type/pmatch. (It will just ignore the question/type/pmatch/.git folder).

Moodle in English -> General help -> Too Many Users -> Re: Too Many Users

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Just so you know, I work at the Open University where we have 200,000+ users. It is exactly because we are thinking big that search results have to be limited to a reasonable number. 100 seems reasonsable to me.

If you need to adminster Moodle at larger scale, look at the the various authentication and enrolment plugins that let you integrate with the data in your institution's other database, without requiring manual enrolment in Moodle at all. Alternatively, look at the various bulk upload options.