Your Moodle version

Question types: Gapfill Question

Maintained by Picture of Marcus Green Marcus Green
Cloze question type with very simple question creation syntax. Can do drag drop, dropdowns or gapfill questions
Moodle 2.1, 2.2, 2.3, 2.4, 2.5, 2.6




Picture of Marcus Green
Marcus Green (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Marcus Green
    Thu, Apr 17, 2014, 7:05 PM
    Thank you for the feedback. Could you elaborate on what you mean by hints and when they would be displayed. I have been working on a concept which I call "per gap feedback" which may be a similar idea
  • Picture of Marcus Green
    Thu, Apr 17, 2014, 7:06 PM
    I have seen the feedback that can be put in the core Cloze type but not in the OU question type.
  • Gordon McLeod
    Tue, Apr 22, 2014, 4:49 PM
    Hi Marcus,
    I also saw your demo at Moot14 and was very impressed. We're not allowed to install anything non-core unless confident the maintenance cycle will continue to stay ahead of our institutional upgrades by at least 1 version. If this became core it would solve our issue - but other than that happening is there any reassurance you can offer?
    Thanks, Gordon.
  • Picture of Marcus Green
    Tue, Apr 22, 2014, 6:30 PM
    That is a good question Gordon, I will compose a detailed reply. Thank you for your kind tweets.
  • Picture of Marcus Green
    Thu, May 1, 2014, 5:04 AM
    I have added some content to the Github wiki which may address some questions about support and continuing maintenance. You can see it here
  • Gordon McLeod
    Thu, May 1, 2014, 4:09 PM
    Thanks for the support information Marcus, that's extremely helpful.
  • Picture of Eduardo Hm
    Thu, May 15, 2014, 3:09 PM
    Good morning ,

    I upgraded to version 2.6.2 moodle platform , so I had to also update multiple plugins that required it . When upgrading to version qtype_gapfill modulo 2006082512 dated January 2014, has jumped me an error when launching the upgrade.php giving the following error:

    Debug info : ERROR : syntax error at or near " af"
    LINE 1 ... tion_gapfill add noduplicates tinuint column ( 1) default 1 af
    ter casesensitive

    I've gotten into the code , specifically within the fochero .. / db / upgrade.php and have seen the following:

    1 - There are built SQL so erroneous , so it will not cut requires an SQL statement with a carriage return , because PHP does not know if interpreted as the continuation of the SQL string.
    2 - when making one alter the table by adding fields , gives error on some points because the table " question_gapfill " previous versions and has some columns that you want to add .

    Review the code for this part of the module .

    Thank you very much and best regards
  • Picture of Marcus Green
    Thu, May 15, 2014, 3:14 PM
    What database are you using, (e.g. MySQL or Microsoft SQL Server, Postgres....
  • Picture of Nick Phillips
    Wed, May 21, 2014, 8:04 AM
    Marcus, I'm wondering which version you'd recommend using on Moodle 2.6.3+ at the moment - the 1.4 release linked here, or one of the git branches (the 1.5 branch seems a likely candidate)?...


  • Picture of Marcus Green
    Wed, May 21, 2014, 2:40 PM
    Nick, go for the 1.4 release here as the 1.5 is still under development. You can see the changes in 1.5 in the file at
  • Picture of Marcus Green
    Wed, May 21, 2014, 2:41 PM
    That should have been changes due, it also contains some refactoring which I am hoping will make future planned development easier
  • Picture of Nick Phillips
    Thu, May 22, 2014, 7:06 AM
    Hmmm, thought there were a couple of changes in 1.5 that looked potentially important - for example. Actually, looking at it, maybe that was the only one.
  • Picture of Marcus Green
    Fri, May 23, 2014, 3:09 PM
    Hi nick, thanks for taking an interest in my plugin, the database changes are about backwards compatibility for people upgrading who are using databases other than MySQL. The support for !! is the potentially interesting bit as it allows the creation of question types that is not possible any other way in moodle and I think is quite interesting. The version of the plugin I was working on at home last night is looking good and I intend to put that up to github very soon.
  • Manuel
    Fri, Jun 27, 2014, 8:26 AM
    I upgraded today to Moodle 2.7+ (Build: 20140619) and I am having issues with the gapfill plugin.

    I have downloaded version 1.4 from GitHub and in the Plugins page I get.

    Gapfill question type /question/type/gapfill Add-on 2006082507 2006082512 Moodle 2012120305 To be upgraded

    When I click on Upgrade Moodle Database Now i Get the following error messages:

    DDL sql execution error

    More information about this error
    Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'af
    ter casesensitive' at line 1
    ALTER TABLE mdl_question_gapfill add column noduplicates tinyint(1) default 1 af
    ter casesensitive
    Error code: ddlexecuteerror
    Stack trace:

    line 449 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
    line 839 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 74 of /question/type/gapfill/db/upgrade.php: call to mysqli_native_moodle_database->change_database_structure()
    line 535 of /lib/upgradelib.php: call to xmldb_qtype_gapfill_upgrade()
    line 1615 of /lib/upgradelib.php: call to upgrade_plugins()
    line 434 of /admin/index.php: call to upgrade_noncore()

    How can I can make work this excellent plugin, is there an update 2006082512 ?

  • Picture of Marcus Green
    Fri, Jun 27, 2014, 2:41 PM
    What type of database are you using Manuel? Is it MySql or something else?
1 2 3
Please login to post comments