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.4, 2.5, 2.6, 2.7, 2.8


Screenshot #0


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
    Mon, Jul 6, 2015, 5:13 AM
    Which version of the plugin are you using (i.e. 1.6 or 1.7). Can you make an xml backuup of the question and send it to my email address as given in the direct message I have sent to you.
  • Picture of Marcus Green
    Tue, Jul 7, 2015, 3:38 AM
    I am assuming you are using Gapfill 1.6. This looks like an issue with handling non ascii (or extended) characters in PHP. I removed the reference to Straßenbahn and it worked. It is not handling the ß character correctly. I have just reproduced this error in 1.6 and then tried it in 1.7 and it works correctly in 1.7. There is also a fix to the drag drop code that improves the way this particular question works.
  • Picture of Daniel Bosse
    Mon, Jul 13, 2015, 2:22 AM
    Thanks Marcus. I am using Gapfill 1.7. So you say Gapfill o PHP wouldnt accpet letters like ß ü ä ö?
  • Picture of Marcus Green
    Mon, Jul 13, 2015, 3:02 AM
    Hi Daniel, the problem is in the underlying php function strtolower (see It doesn't handle extended ASCII properly as you can see from that link. In 1.7 so it won't work properly with umlauts etc. I have switched to using mb_strotolower which will handle the extended ASCII. If you check the box on a question that says "Case sensitive" on the 1.6 version it doesn't run the strtolower function and it should work as you expect. However it is probably better to upgrade to the 1.7 version.
  • Picture of Klaus Steitz
    Mon, Jul 13, 2015, 10:03 PM
    Doesn´t work with MS SQL database anymore:
    "Debug info:
    Error code: invalidmssqlnativetype
    $a contents: tinyint
    Stack trace:

    line 591 of /lib/dml/mssql_native_moodle_database.php: dml_exception thrown
    line 456 of /lib/dml/mssql_native_moodle_database.php: call to mssql_native_moodle_database->mssqltype2moodletype()
    line 150 of /lib/ddl/database_manager.php: call to mssql_native_moodle_database->get_columns()
    line 63 of /question/type/gapfill/db/upgrade.php: call to database_manager->field_exists()
    line 541 of /lib/upgradelib.php: call to xmldb_qtype_gapfill_upgrade()
    line 1630 of /lib/upgradelib.php: call to upgrade_plugins()
    line 433 of /admin/index.php: call to upgrade_noncore()"

    Any ideas, how to solve?

  • Picture of Marcus Green
    Mon, Jul 13, 2015, 10:04 PM
    What version are you upgrading from (the value will be in your version.php file of the gapfill question type)
  • Picture of Klaus Steitz
    Tue, Jul 14, 2015, 5:34 PM
    2006082513 to 2006082515
  • Picture of Marcus Green
    Tue, Jul 14, 2015, 5:47 PM
    Thanks Klaus, I will set up the 2006082513 version up on an instance of Moodle with SQL server and try the upgrade myself.
  • Picture of Marcus Green
    Sun, Jul 19, 2015, 5:51 PM
    Klaus, could you tell me what version of Moodle you are running. I have just done that upgrade with sql server and Moodle 2.9 and it worked OK, so I am now curious about the Moodle API
  • Picture of Stuart Price
    Mon, Aug 24, 2015, 9:29 PM
    This is a really useful plugin that we are just beginning to use for language teaching. For some reason the gaps are nowhere near as wide as in the examples I've seen online, and in one question a word is truncated after it is dropped into the gap (banana in the screenshot This happens with both Fixed Gap Size on and off. Perhaps this is font/theme-related? We're using the campus theme but have not made any changes to the theme's defaults.
  • Picture of Marcus Green
    Mon, Aug 24, 2015, 9:43 PM
    Hi Stuart, can you install the example questions contained in xml file in the package and get screen shots of them, can you take a look at the display using the clean theme (you may be able to switch to it by adding &theme=clean in the URL bar), I will send my email address directly to you via Moodle messages...
  • Picture of Liz Steele
    Wed, Sep 9, 2015, 12:20 AM
    I am also experiencing an error in grading. I am trying to use drag and drop on a Spanish quiz. It marks all answers that have an accent incorrect. Moodle 2.8.6, Gapfill 2006082515 1.7, Clean theme. Is there a fix for this? Or should we use a different question type? Thanks!
  • Picture of Marcus Green
    Wed, Sep 9, 2015, 12:31 AM
    Can you export your questions as XML and send them to me (I will send my email address directly to you)
  • Picture of Marcus Green
    Wed, Sep 9, 2015, 12:34 AM
    Hi Liz, can you also import the sample questions that come in the sample_questions.xml file and in particular run the question/s with the title "Other scripts and accents". This illustrates non ASCII characters, a word in Cyrillic and the a french word with an accent.
  • Picture of Marcus Green
    Wed, Sep 9, 2015, 6:45 AM
    Hi Liz, I have just tried your question in Moodle 2.7 with Gapfill 1.7 and it appeared to work. I will get an install of Moodle 2.8.6 and try it with that (there should be no difference but you never know with these things).
1 2 3 4 5 6 7
Please login to post comments