The Gap-select new question type for 2.1

The Gap-select new question type for 2.1

by Joseph Rézeau -
Number of replies: 11
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Tim,

Just tried to install the The Gap-select new question type for 2.1 on my local moodle 2.1 test site. Went to https://github.com/timhunt/moodle-qtype_gapselect/#readme and followed instructions.

  1. To install using git, type this command in the root of your Moodle install
    git clone git://github.com/timhunt/moodle-qtype_gapselect.git question/type/gapselect
  2. Then add question/type/gapselect to your git ignore.

I followed instructions #1 and got all the Gap-select files installed OK in my moodle/question/type/gapselect folder. Then I visited the Notifications page and the gapselect question type was correctly installed to my moodle test site.

I do not understand instructions #2, especially the "ignore" bit at the end, nor the "your git" either.

Anyway, when I visit Site administration ► Plugins ► Question types ► Manage question types, I get this error message and cannot do anything else than remove the gapselect folder from my moodle site.

Fatal error: Class 'qformat_default' not found in C:\server\htdocs\moodlegit21dev\moodle\question\format\xml\format.php on line 40

Any idea?

Joseph

Average of ratings: -
In reply to Joseph Rézeau

Re: The Gap-select new question type for 2.1

by Jean-Michel Védrine -

Joseph,

I had no problem installing this question type.

I didn't use git (you know I can't !)

I downloaded a zip file, renamed to gapselect, moved to question/type and then installed the plugin going to the notifications page.

When I visit the Manage Question types page no error message is displayed and gapselect is diplayed as "Select missing words"

The really cool thing to do after you got gapslect working is to install ddwtos question type I am sure you will like it cool

In reply to Jean-Michel Védrine

Re: The Gap-select new question type for 2.1

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Jean-Michel,

Installing via GIT or the ZIP file is the same : the files in the gapselect folder are identical.

I am using Moodle 2.1beta (Build: 20110624) and gapselect

$plugin->version  = 2011020100;
$plugin->requires = 2011051212;

I hope Tim will provide an explanation when he comes back from his week-end!

Joseph

In reply to Joseph Rézeau

Re: The Gap-select new question type for 2.1

by Jean-Michel Védrine -

Hello Joseph,

You know very well that I'm a lot more knowledgeable in php than in git wink

My gapselect version is the same but my 2.1 beta is older (2011060900.00) so obviously something has changed.

I was just about to download the latest version that I can found not using git wink because 16 days is quite a long time ago for a beta version and Tim has fixed a lot of things during the last 16 days.

I will install, add gapselect and report.

I will also look more closerly at the merror message you posted.

For the "Then add question/type/gapselect to your git ignore" I was under the impression that you have somewhere in your git (that means your own git) a file called a gitignore file where you put directories names that you want to be left unmodified in your future moodle upgrade.

Of course the above explanation is certainly full of errors, as I said I don't understand anything to git big grin

In reply to Jean-Michel Védrine

Re: The Gap-select new question type for 2.1

by Jean-Michel Védrine -

I just read the error message you posted and it seems it has something to do with xml import/ export of gapselect questions but I don't know where to look in Moodle 2.1 for third party question types import/export.

In reply to Jean-Michel Védrine

Re: The Gap-select new question type for 2.1

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Jean-Michel:

For the "Then add question/type/gapselect to your git ignore" I was under the impression that you have somewhere in your git (that means your own git) a file called a gitignore file where you put directories names that you want to be left unmodified in your future moodle upgrade.

An excellent explanation, thank you J.-M. ! Actually it should be a .gitignore file (starting with a dot).

In reply to Joseph Rézeau

Re: The Gap-select new question type for 2.1

by Jean-Michel Védrine -

Hello,

After having installed the latest 2.1 dev I have the same error as Joseph but not for the same question type. I think in fact the problem appear at the first third party question type having import/export from xml functions.

This is because  the line :

require_once($CFG->dirroot . '/question/format.php');

have been removed from question/format/xml/format.php 2 days ago while fixing MDL-27956

Re-adding this line and the Manage Questions Types is back to normal.

But i have not taken the time to study MDL-27956 and why this line was removed. So maybe re-adding it has adverse effects black eye So we have to wait Tim's return from a well earned week-end to know the end of the story big grin.

In reply to Jean-Michel Védrine

Re: The Gap-select new question type for 2.1

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

We did not realise that change in MDL-27956 would have this effect. Will fix soon.

Average of ratings: Useful (1)
In reply to Tim Hunt

Re: The Gap-select new question type for 2.1

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Tim and Jean-Michel,

I am pleased to report that both the gapselect and Drag-and-drop, words to sentences question types work fine in just-issued version 2.1 of Moodle.approve

Joseph

In reply to Jean-Michel Védrine

Re: The Gap-select new question type for 2.1

by Ravi Vare -

Hi Jean,

I installed 'GapSelect' Question type successfully.(Moodle 2.1)

Special Thanks To Tim and team.

You mentioned in your thread about-

ddwtos question type

Plz. Dircrect me in this Question type. i searched but i couldn't get anything.

Best Regards,

Ravi

P.S. 'GapSelect' is not in Plugin database.

Tim, Plz. include it.

In reply to Ravi Vare

Re: The Gap-select new question type for 2.1

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

ddwtos is at https://github.com/timhunt.

Note that we are gradually moving all the OU plugins to https://github.com/moodleou, and adding them to the new Plugins database, but that is not the top of our priority list right now.

Average of ratings: Useful (1)