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


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 S. Ali
    Thu, Apr 30, 2015, 3:06 AM
    I've also been experiencing this issue since the latest release (2006082514 1.6).
  • Picture of Marcus Green
    Thu, Apr 30, 2015, 6:14 AM
    Hi Al, nobody else has reported it but I have just replicated your experience in an install of 2.9 on my own machine. It has worked in earlier versions of 2.9 as I have been updating with every new version so something has changed. I shall see what I can do about it. I have just tested Gapfill 1.6 with 2.8 and it seems to work fine.
  • Picture of AL Rachels
    Fri, May 8, 2015, 1:33 AM
    Hi Marcus, I played with the questions with accent marks that Terry gave you and have some more info on the drag and drop in Moodle 2.9. If you use the Clean or More themes in Moodle 2.9, drag and drop is broken. I also tried Formal White and Evolve-D with the exact same questions and they work just fine in Moodle 2.9. I am using version 1.6 of the question type.
  • Picture of Daniel Bosse
    Sun, Jul 5, 2015, 9:23 PM
    Hello Marcus,
    your mod is very usefull and we love the drag&drop option. Since our update to moodle 2.8 dragdrop-option with more then 3 correct options arent working anymore.

    We made a list like this




    am Bahnhof:

    [Gleis 1|Bahnsteig]

    [Gleis 1|Bahnsteig]




    The last 2 options are working very well but the first one marks allways wrong. Do you know anything about this?

  • 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...
1 2 3 4 5 6
Please login to post comments