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

Fatal error during plugin installation #63

Open
WuttigTom opened this issue Sep 6, 2022 · 1 comment
Open

Fatal error during plugin installation #63

WuttigTom opened this issue Sep 6, 2022 · 1 comment

Comments

@WuttigTom
Copy link

I tried to install qtype_pmatch and got this error message after the installation seemed to be finished.

Fatal error: Declaration of qtype_pmatchjme::delete_question($questionid, $contextid) must be compatible with qtype_pmatch::delete_question($questionid, $contextid)

Now the entire admin area of the Moodle is no longer accessible. Does anyone know of this error or a solution to prevent this during installation?
I thought I'd ask - before I start looking for the problem in the code.

@timhunt
Copy link
Member

timhunt commented Sep 6, 2022

If you check in the Moodle plugins database, you will see that this qtype_pmatchjme is not compatible with Moodle 4.0 yet. We are working on it, but it is not working yet. Hopefully, fixing it will be complete soon.

As a quick fix, try making a change like this 6ccaa85#diff-043e61cb882163e4dfdc08ba0c8b372dd52adf8e7ccc030d4d476d335a971c32R454 in question/type/pmatchjme/questiontype.php

Sorry for the hassle.

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