I get this error message when I tried to import in GIFT format.

( ! ) Fatal error: Class 'qformat_gift' not found in /home/bong/webdev/mydrupal/sites/all/modules/quiz_ei/questions_import/questions_import.admin.inc on line 312

This file was impoted sucessfully with Quiz 6.x-4.0-beta6. How do i solve this problem?

Comments

patator’s picture

The same problem ...
Fatal error: Class 'qformat_gift' not found in Z:\home\patan.patan\www\sites\all\modules\quiz_ei\questions_import\questions_import.admin.inc on line 312
After the update quiz-6.x-4.0-beta3

zeezhao’s picture

Hi. Please did you find a fix to this?

tychobln’s picture

I can confirm this bug. It is solved when adding a symlink to "sites/all/modules/quiz/includes" to /sites/all/modules/quiz_ei/moodle.

But this creates another error:
Fatal error: Class 'qformat_default' not found in /home/.../sites/all/modules/quiz_ei/moodle/question/format/gift/format.php on line 38

patator’s picture

On 6.x-4.0-rc9 problem persists?
Maybe everyone should use the solution to the cvs import from sivaji.
waiting...

zeezhao’s picture

The old gift import from the old questions_import module of 2010-05-11 appears to work, even when I combine it with the latest quiz module... Just pointing this out in case someone needs it.

dax444’s picture

I know this is a little old but in case anyone needs it the problem is the code is looking for the moodle code in the quiz/includes directory but the installation of quiz_ei has the moodle directory and the moodle_support.php in it's folder. Following up on tychobln's post about the symlink he has the moodle directory link set up but his second error is because he was not linked to the moodle_support.php file. You can symlink to that directory and file or just move the moodle directory and the moodle_support.php file into the includes directory under the quiz module directory and everything works great.