Issue Details (XML | Word | Printable)

Key: MDL-12346
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Yu Zhang
Reporter: Andrea Bicciolo
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Lesson Module GIFT import fails

Created: 26/Nov/07 06:00 PM   Updated: 29/Nov/07 06:37 PM
Component/s: Lesson
Affects Version/s: 1.8.3
Fix Version/s: 1.8.4, 1.9, 2.0

Database: MySQL
Participants: Andrea Bicciolo and Yu Zhang
Security Level: None
Resolved date: 29/Nov/07
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE


 Description  « Hide
To reproduce the bug:

0. Update your Moodle to the latest 1.8.x CVS version, then turn on debugging to the ALL level
1. create a GIFT questions text file to be imported
2. test it against the quiz module import, and make sure the GIFT file works at least here
3. now create a Lesson Module, and select Import question from file
4. select GIFT as the import format
5. select and upload the previously created GIFT formatted file
6. Moodle returns: Fatal error: Call to undefined method qformat_gift::try_importing_using_qtypes() in /yourmoodlepathl/moodle/question/format/gift/format.php on line 228



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Yu Zhang added a comment - 29/Nov/07 12:35 PM
Added some code to check for function existence before calling it. The problem is that there are 2 copies of qformat_default classes, 1 in the question bank and the other in lesson module. The lesson mod uses the lesson mod copy only, so it's missing some methods. I do not know whether it is possible to merge them gracefully, given that the one in lesson has a specialized importprocess() method.

Andrea Bicciolo added a comment - 29/Nov/07 06:37 PM
Thanks Yu!