Can't publish quiz in Academi Moodle version 3.10.

Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
回帖数:11

I have just upgraded to Moodle 3.10 and moved to Academi v3.6.2. If I add an Activity or other resource the other resources seem to work but not the quiz. I get the following message:

Coding error detected, it must be fixed by a programmer: Capability 'quizaccess/seb:manage_seb_showkeyboardlayout' was not found! This has to be fixed in code.

Please can someone assist: where and how do I fix the code?

回复Welmoed Geekie

Re: Can't publish quiz in Academi Moodle version 3.10.

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Did the Moodle upgrade complete successfully?
回复Tim Hunt

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
Yes. It appears to have been upgraded successfully.
回复Welmoed Geekie

Re: Can't publish quiz in Academi Moodle version 3.10.

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
OK, the way to check this is to go to Admin -> Notifications page. That will tell you if the upgrade has completed or not, and then you can verify on that screen exactly which version of Moodle you are using.

Also, if you go to Admin -> Users -> Permissions -> Define roles, and edit a role, that will let you see all the capabilities that exist, and you can check if quizaccess/seb:manage_seb_showkeyboardlayout is listed there.

Those checks may help work out what the issue is.
回复Tim Hunt

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
Thank you.
- The Moodle version I am using is 3.10 - confirmed.
- At Permissions > Define roles I found some of the quizaccess/seb* information but not the exact capability containing the words showkeyboardlayout.

I don't need the new SEB (safe exam browser) functionality as all my assessments are open-book format.
At Plugins Overview I uninstalled the plugin Safe Exam Browser.

Unfortunately this did not resolve the issue.
I still get the same error code when I want to add a Quiz:"Coding error detected, it must be fixed by a programmer: Capability
quizaccess/seb:manage_seb_showkeyboardlayout' was not found! This has to be fixed in code".

At Plugins > Activity Modules > Quiz there are still 2 sections related to Safe Exam Browser even after I uninstalled the plugin.
- Safe Exam Browser templates
- Safe Exam Browser Access Rules
回复Welmoed Geekie

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
I found the capability at: https://docs.moodle.org/310/en/Capabilities/quizaccess/seb:manage_seb_showkeyboardlayout
* This allows a user to enable/disable the UI element to control the keyboard layout in a quiz which has the use of Safe Exam Browser required.
* This capability is allowed for the default roles of manager, and editing teacher.
回复Welmoed Geekie

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
I also tried on the cpanel
phpmyadmin in the database
mdloj_quizaccess_seb_quizsettings >
I changed the NULL to None , and saved it and tried to publish a quiz - no luck - I get the same error message. I changed it back to the default NULL.
回复Welmoed Geekie

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
If I should add the capability quizaccess/seb:manage_seb_showkeyboardlayout, I found steps to add a capability at:
https://docs.moodle.org/dev/NEWMODULE_Adding_capabilities#1._Create_a_file_access.php_in_the_.3C.3CNEWMODULE.3E.3E.2Fdb_directory
The problem is I am stuck at step 1: how do I add a module language file or access the database directory to follow the rest of the steps?

I don't want to use the safe exam browser option at all, but I can't publish a quiz without adding this capability.
回复Welmoed Geekie

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
I suspect that if we add the capability, the issue will be resolved.
I look forward to hearing from you.
回复Welmoed Geekie

Re: Can't publish quiz in Academi Moodle version 3.10.

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
You should not need to change any code. That capabilit exists in Moodle 3.10. You can verify that at https://qa.moodledemo.net/admin/roles/permissions.php?contextid=9063. That demo site is running Moodle 3.10.

The most likely explanation for what you are seeing is that Moodle 3.10 is not installed correctly on your server. I suggest you ask for help in the "Installing and upgrading help" forum to solve that.
回复Tim Hunt

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
Thank you very much.
I have brought in a Moodle expert (from Upwork) to assist who confirms your diagnosis.
My hosting company has confirmed that the installation appears successful on their side.
They suggest to cross check the website codes with the developer.
I will also research the Installing and upgrading forum.
Thank you for your assistance.
回复Tim Hunt

Re: Can't publish quiz in Academi Moodle version 3.10.

Welmoed Geekie -
The hosting company says that is appears to have upgraded successfully.
As have been advised that 3.10 is only a partial installation.
Our option (as proposed by my consultant) is to restore the previous back up version.