Skip to content
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

Fix compatibility with Moodle 4 #2

Open
azmatksa opened this issue Aug 3, 2023 · 1 comment
Open

Fix compatibility with Moodle 4 #2

azmatksa opened this issue Aug 3, 2023 · 1 comment

Comments

@azmatksa
Copy link

azmatksa commented Aug 3, 2023

In Moode 4, it shows an error, there is a field hidden that's not exist in question table while in query it's using.

image

@Shotte
Copy link

Shotte commented Feb 1, 2024

@azmatksa
I had to do the following, because a database column named "hidden" for table "mdl_question" no longer exists:

  1. go to the file location <...>/moodle/report/questionstats/
  2. edit file index.php
  3. delete from line 50 and 53 (SQL queries) the text "Q.hidden = 0 AND"
  4. save file and it should work

If you addionally want to solve that a couple of questions are announced as "Unknown plugin type", change lines 78 to 80 as follows:

if ($ctype_name == '[[pluginname]]') {
$ctype_name = '[' . $item->typename . ']';
}
else {
$ctype_name = $ctype_name . ' [' . $item->typename . ']';
}

Now it looks all fine like this:

Screenshot 2024-02-01 203026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants