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

Error when importing GIFT type Moodle 4.4.x #84

Open
RayCoSector opened this issue Oct 4, 2024 · 0 comments
Open

Error when importing GIFT type Moodle 4.4.x #84

RayCoSector opened this issue Oct 4, 2024 · 0 comments

Comments

@RayCoSector
Copy link

RayCoSector commented Oct 4, 2024

Good morning Gordon,

We've noticed an issue within Moodle 4.4.3 with one of your question types (unsure if it is being caused by qtype_essayautograde or qtype_ordering)

If you could watch the following video, showing what we are seeing.

The site it errors on has the following:
Moodle 4.4.3
qtype_ordering - core 2024042200
qtype_essayautograde - 2024-05-31 (31) 2024041230 taken from GitHub

The site where it works correctly has the following:
Moodle 4.1.13
qtype_ordering - 2023-09-29 (10) 2023092910
qtype_essayautograde - 2023-04-09 (25) 2023040924

Stack trace

Exception - qtype_ordering::import_from_gift(): Argument #2 ($question) must be of type ?stdClass, bool given, called in [dirroot]/question/format.php on line 315

[More information about this error](http://docs.moodle.org/404/en/error/moodle/generalexceptionmessage)

Debug info:
Error code: generalexceptionmessage
Stack trace:
line 311 of /question/type/ordering/questiontype.php: TypeError thrown
line 315 of /question/format.php: call to qtype_ordering->import_from_gift()
line 291 of /question/format/gift/format.php: call to qformat_default->try_importing_using_qtypes()
line 734 of /question/format.php: call to qformat_gift->readquestion()
line 353 of /question/format.php: call to qformat_default->readquestions()
line 127 of /question/bank/importquestions/import.php: call to qformat_default->importprocess()

To note XML file import works on both sites & have suggested to King's College to use this format for the time being.

Thank you for your time,

Regards,
Ray Reid.

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

1 participant