-
Notifications
You must be signed in to change notification settings - Fork 64
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 on Moodle Import #181
Comments
Afternoon I work for blackboard and we can confirm this issue occurs using version 2016011105 of the assignment module, the error which gets generated is as per below Debug info: This is being caused by the public function createAssignment( $assignment ) function as the code cant tell if it is being called by the moodle restore or import library below is the entire call stack for this error which should show the parent functions |
Hi @sharpchi and @barry-matthias , We have fixed this in our current development build so it will go out with the next release of the V2 plugin. |
Thanks for letting us know. I'm not entirely sure it is fixed, though. In the
which checks the
Would you mind checking please? |
Hi @sharpchi , Thanks for pointing that out, after looking at it myself I do indeed see a bug in our fix. We haven't done our full sweep of QA and automations yet for the next release so we hadn't spotted it yet. We will amend this before the release. |
So, I think you need something like this:
|
Hi @sharpchi , Yeah this is the fix I had in mind. From my testing the fix you propose does work as intended. We'll get it through QA as soon as we can as we aim to release soon. |
Fixed in v2016091401 |
Starting this year we are creating new versions of Moodle courses for each academic year and getting the lecturers to run the Moodle Import process (Course administration -> Import) to bring over content from the previous year.
When they've selected the Moodle course they wish to import from, and then click on "Jump to final step", we are sometimes getting the following error message:
This seems to indicate that the source course had a TII2 activity with a start date of more than a year from this moment.
I've run a few tests with old Moodle courses, but this doesn't seem to be consistently producing this error, so I don't know if there's another factor involved in this.
The error doesn't stop the Import process from running, entirely. In fact it seems to import in the TII2 activity, but when you click on it you get the following message:
I looked into this a little bit, and though there's an entry in the course_module table, there isn't an entry in the turnitintooltwo table:
produces:
even though course_module.instance has been set.
It looks to me as though the restore function aborts, but doesn't clean up properly. Since this ends up with a broken link, I would say this is a bug to be fixed.
As far as we are concerned, we are happy if TII2 activities are not imported, but there's no way of automatically stopping that, currently.
I am aware that instead of clicking "Jump to final step" the lecturer could click on "Next" and deselect the TII activities, but you try getting lecturers to jump through those hoops! It's not going to happen.
The text was updated successfully, but these errors were encountered: