Moodle
  1. Moodle
  2. MDL-3520

'Matching' question type in quiz does not respond to shuffle

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      Linux
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Rank:
      10893

      Description

      Using Moodle 1.5 Beta (2005052300) no 'matching' questions can be made to randomise using the shuffle functions. The selectable responses will randomise, but not the question part.

      Quiz settings:

      Shuffle questions: yes

      Shuffle answers: yes

      Unlimited attempts

      Each attempt builds on the last: no

      Grading method: highest grade

      Group mode: no groups

      Visible to students: show

      Students may review: all selected except the answers column

      PHP info:

      PHP Version 4.3.9

      System Linux LinuxWeb1.garibaldi.notts.sch.uk 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686

      Build Date Nov 21 2004 19:53:32

      Configure Command './configure' '-with-mysql' 'enable-track-vars' 'enable-trans-sid' 'with-gd' 'with-jpeg-dir=/usr' 'with-ttf' 'with-zlib-dir=/usr' 'with-apxs2=/usr/local/apache2/bin/apxs' '-with-ldap'

      Server API Apache 2.0 Handler

      Virtual Directory Support disabled

      Configuration File (php.ini) Path /usr/local/lib/php.ini

      PHP API 20020918

      PHP Extension 20020429

      Zend Extension 20021010

      Debug Build no

      Thread Safety disabled

      Registered PHP Streams php, http, ftp, compress.zlib

      This program makes use of the Zend Scripting Language Engine:

      Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

      --------------------------------------------------------------------------------

      PHP Credits

      --------------------------------------------------------------------------------

      Configuration

      PHP Core

      Directive Local Value Master Value

      allow_call_time_pass_reference Off Off

      allow_url_fopen On On

      always_populate_raw_post_data Off Off

      arg_separator.input & &

      arg_separator.output & &

      asp_tags Off Off

      auto_append_file no value no value

      auto_prepend_file no value no value

      browscap no value no value

      default_charset no value no value

      default_mimetype text/html text/html

      define_syslog_variables Off Off

      disable_classes no value no value

      disable_functions no value no value

      display_errors Off Off

      display_startup_errors Off Off

      doc_root no value no value

      docref_ext no value no value

      docref_root no value no value

      enable_dl On On

      error_append_string no value no value

      error_log no value no value

      error_prepend_string no value no value

      error_reporting 7 2047

      expose_php On On

      extension_dir ./ ./

      file_uploads On On

      gpc_order GPC GPC

      highlight.bg #FFFFFF #FFFFFF

      highlight.comment #FF8000 #FF8000

      highlight.default #0000BB #0000BB

      highlight.html #000000 #000000

      highlight.keyword #007700 #007700

      highlight.string #DD0000 #DD0000

      html_errors On On

      ignore_repeated_errors Off Off

      ignore_repeated_source Off Off

      ignore_user_abort Off Off

      implicit_flush Off Off

      include_path .:/usr/local/lib/php .:/usr/local/lib/php

      log_errors On On

      log_errors_max_len 1024 1024

      magic_quotes_gpc Off Off

      magic_quotes_runtime Off Off

      magic_quotes_sybase Off Off

      max_execution_time 30 30

      max_input_time 60 60

      open_basedir no value no value

      output_buffering 4096 4096

      output_handler no value no value

      post_max_size 64M 64M

      precision 14 14

      register_argc_argv Off Off

      register_globals Off Off

      report_memleaks On On

      safe_mode Off Off

      safe_mode_exec_dir no value no value

      safe_mode_gid Off Off

      safe_mode_include_dir no value no value

      sendmail_from no value no value

      sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

      serialize_precision 100 100

      short_open_tag On On

      SMTP localhost localhost

      smtp_port 25 25

      sql.safe_mode Off Off

      track_errors Off Off

      unserialize_callback_func no value no value

      upload_max_filesize 64M 64M

      upload_tmp_dir no value no value

      user_dir no value no value

      variables_order GPCS GPCS

      xmlrpc_error_number 0 0

      xmlrpc_errors Off Off

      y2k_compliance On On

      apache2handler

      Apache Version Apache/2.0.52 (Unix) PHP/4.3.9

      Apache API Version 20020903

      Server Administrator root@linuxweb1.garibaldi.notts.sch.uk

      Hostname:Port linuxweb1.garibaldi.notts.sch.uk:0

      User/Group apache(48)/48

      Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100

      Timeouts Connection: 300 - Keep-Alive: 15

      Virtual Server Yes

      Server Root /usr/local/apache2

      Loaded Modules core mod_access mod_auth mod_include mod_log_config mod_env mod_setenvif prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_cgi mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_so sapi_apache2

      Directive Local Value Master Value

      engine 1 1

      last_modified 0 0

      xbithack 0 0

      Apache Environment

      Variable Value

      HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, /

      HTTP_REFERER http://linuxweb1.garibaldi.notts.sch.uk/moodle/admin/phpinfo.php

      HTTP_ACCEPT_LANGUAGE en-gb

      HTTP_ACCEPT_ENCODING gzip, deflate

      HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

      HTTP_HOST linuxweb1.garibaldi.notts.sch.uk

      HTTP_CONNECTION Keep-Alive

      HTTP_COOKIE MOODLEID_=%25E2%25C8%2513E%25BD; MoodleSessionmain=37dcec50993632756bf3991b8d058f41; MoodleSessionTestmain=swZkSo2hyA; testing=1; sid=866d620ce6840617f7a2df92aca3dd69; MOODLEID_main=%25E2%25C8%2513E%25BD

      PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

      SERVER_SIGNATURE no value

      SERVER_SOFTWARE Apache/2.0.52 (Unix) PHP/4.3.9

      SERVER_NAME linuxweb1.garibaldi.notts.sch.uk

      SERVER_ADDR 10.0.0.25

      SERVER_PORT 80

      REMOTE_ADDR 10.0.2.87

      DOCUMENT_ROOT /var/www/html/

      SERVER_ADMIN root@linuxweb1.garibaldi.notts.sch.uk

      SCRIPT_FILENAME /var/www/html/moodle/admin/phpinfo.php

      REMOTE_PORT 2586

      GATEWAY_INTERFACE CGI/1.1

      SERVER_PROTOCOL HTTP/1.1

      REQUEST_METHOD GET

      QUERY_STRING bottomframe=true

      REQUEST_URI /moodle/admin/phpinfo.php?bottomframe=true

      SCRIPT_NAME /moodle/admin/phpinfo.php

      HTTP Headers Information

      HTTP Request Headers

      HTTP Request GET /moodle/admin/phpinfo.php?bottomframe=true HTTP/1.1

      Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, /

      Referer http://linuxweb1.garibaldi.notts.sch.uk/moodle/admin/phpinfo.php

      Accept-Language en-gb

      Accept-Encoding gzip, deflate

      User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

      Host linuxweb1.garibaldi.notts.sch.uk

      Connection Keep-Alive

      Cookie MOODLEID_=%25E2%25C8%2513E%25BD; MoodleSessionmain=37dcec50993632756bf3991b8d058f41; MoodleSessionTestmain=swZkSo2hyA; testing=1; sid=866d620ce6840617f7a2df92aca3dd69; MOODLEID_main=%25E2%25C8%2513E%25BD

      HTTP Response Headers

      X-Powered-By PHP/4.3.9

      Expires Thu, 19 Nov 1981 08:52:00 GMT

      Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0

      Pragma no-cache

      Keep-Alive timeout=15, max=100

      Connection Keep-Alive

      Transfer-Encoding chunked

      Content-Type text/html; charset=ISO-8859-1

      ctype

      ctype functions enabled

      gd

      GD Support enabled

      GD Version bundled (2.0.28 compatible)

      GIF Read Support enabled

      GIF Create Support enabled

      JPG Support enabled

      PNG Support enabled

      WBMP Support enabled

      XBM Support enabled

      ldap

      LDAP Support enabled

      RCS Version $Id: ldap.c,v 1.130.2.10 2004/06/01 21:05:33 iliaa Exp $

      Total Links 0/unlimited

      API Version 3001

      Vendor Name OpenLDAP

      Vendor Version 20217

      mysql

      MySQL Support enabled

      Active Persistent Links 1

      Active Links 1

      Client API version 3.23.49

      MYSQL_MODULE_TYPE builtin

      MYSQL_SOCKET /var/lib/mysql/mysql.sock

      MYSQL_INCLUDE no value

      MYSQL_LIBS no value

      Directive Local Value Master Value

      mysql.allow_persistent On On

      mysql.connect_timeout 60 60

      mysql.default_host no value no value

      mysql.default_password no value no value

      mysql.default_port no value no value

      mysql.default_socket no value no value

      mysql.default_user no value no value

      mysql.max_links Unlimited Unlimited

      mysql.max_persistent Unlimited Unlimited

      mysql.trace_mode Off Off

      overload

      User-Space Object Overloading Support enabled

      pcre

      PCRE (Perl Compatible Regular Expressions) Support enabled

      PCRE Library Version 4.5 01-December-2003

      posix

      Revision $Revision: 1.51.2.2 $

      session

      Session Support enabled

      Registered save handlers files user

      Directive Local Value Master Value

      session.auto_start Off Off

      session.bug_compat_42 Off Off

      session.bug_compat_warn On On

      session.cache_expire 180 180

      session.cache_limiter nocache nocache

      session.cookie_domain no value no value

      session.cookie_lifetime 0 0

      session.cookie_path / /

      session.cookie_secure Off Off

      session.entropy_file no value no value

      session.entropy_length 0 0

      session.gc_divisor 1000 1000

      session.gc_maxlifetime 5400 1440

      session.gc_probability 1 1

      session.name MoodleSessionmain PHPSESSID

      session.referer_check no value no value

      session.save_handler files files

      session.save_path /var/www/moodledata/sessions /tmp

      session.serialize_handler php php

      session.use_cookies On On

      session.use_only_cookies Off Off

      session.use_trans_sid Off Off

      standard

      Regex Library Bundled library enabled

      Dynamic Library Support enabled

      Path to sendmail /usr/sbin/sendmail -t -i

      Directive Local Value Master Value

      assert.active 1 1

      assert.bail 0 0

      assert.callback no value no value

      assert.quiet_eval 0 0

      assert.warning 1 1

      auto_detect_line_endings 0 0

      default_socket_timeout 60 60

      safe_mode_allowed_env_vars PHP_ PHP_

      safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH

      url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry

      user_agent no value no value

      tokenizer

      Tokenizer Support enabled

      xml

      XML Support active

      XML Namespace Support active

      EXPAT Version 1.95.6

      zlib

      ZLib Support enabled

      Compiled Version 1.1.4

      Linked Version 1.1.4

      Directive Local Value Master Value

      zlib.output_compression Off Off

      zlib.output_compression_level -1 -1

      zlib.output_handler no value no value

      Additional Modules

      Module Name

      Environment

      Variable Value

      SSH_AGENT_PID 4365

      HOSTNAME LinuxWeb1.garibaldi.notts.sch.uk

      TERM xterm

      SHELL /bin/bash

      DESKTOP_STARTUP_ID no value

      HISTSIZE 1000

      GTK_RC_FILES /etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2

      WINDOWID 33554696

      USER root

      LD_LIBRARY_PATH /usr/local/apache2/lib:

      LS_COLORS no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:.cmd=00;32:.exe=00;32:.com=00;32:.btm=00;32:.bat=00;32:.sh=00;32:.csh=00;32:.tar=00;31:.tgz=00;31:.arj=00;31:.taz=00;31:.lzh=00;31:.zip=00;31:.z=00;31:.Z=00;31:.gz=00;31:.bz2=00;31:.bz=00;31:.tz=00;31:.rpm=00;31:.cpio=00;31:.jpg=00;35:.gif=00;35:.bmp=00;35:.xbm=00;35:.xpm=00;35:.png=00;35:.tif=00;35:

      SSH_AUTH_SOCK /tmp/ssh-XXkQa0mC/agent.4307

      USERNAME root

      SESSION_MANAGER local/LinuxWeb1.garibaldi.notts.sch.uk:/tmp/.ICE-unix/4307

      PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

      MAIL /var/spool/mail/root

      PWD /root

      INPUTRC /etc/inputrc

      XMODIFIERS @im=none

      LANG en_GB.UTF-8

      GDMSESSION Default

      SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass

      SHLVL 3

      HOME /root

      GNOME_DESKTOP_SESSION_ID Default

      BASH_ENV /root/.bashrc

      LOGNAME root

      LESSOPEN //usr/bin/lesspipe.sh %s

      DISPLAY :0.0

      G_BROKEN_FILENAMES 1

      XAUTHORITY /root/.Xauthority

      COLORTERM gnome-terminal

      _ /usr/local/apache2/bin/httpd

      PHP Variables

      Variable Value

      PHP_SELF /moodle/admin/phpinfo.php

      _REQUEST[bottomframe] true

      _REQUEST[MOODLEID_] %E2%C8%13E%BD

      _REQUEST[MoodleSessionmain] 37dcec50993632756bf3991b8d058f41

      _REQUEST[MoodleSessionTestmain] swZkSo2hyA

      _REQUEST[testing] 1

      _REQUEST[sid] 866d620ce6840617f7a2df92aca3dd69

      _REQUEST[MOODLEID_main] %E2%C8%13E%BD

      _GET[bottomframe] true

      _COOKIE[MOODLEID_] %E2%C8%13E%BD

      _COOKIE[MoodleSessionmain] 37dcec50993632756bf3991b8d058f41

      _COOKIE[MoodleSessionTestmain] swZkSo2hyA

      _COOKIE[testing] 1

      _COOKIE[sid] 866d620ce6840617f7a2df92aca3dd69

      _COOKIE[MOODLEID_main] %E2%C8%13E%BD

      _SERVER[HTTP_ACCEPT] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, /

      _SERVER[HTTP_REFERER] http://linuxweb1.garibaldi.notts.sch.uk/moodle/admin/phpinfo.php

      _SERVER[HTTP_ACCEPT_LANGUAGE] en-gb

      _SERVER[HTTP_ACCEPT_ENCODING] gzip, deflate

      _SERVER[HTTP_USER_AGENT] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

      _SERVER[HTTP_HOST] linuxweb1.garibaldi.notts.sch.uk

      _SERVER[HTTP_CONNECTION] Keep-Alive

      SERVER[HTTP_COOKIE] MOODLEID=%25E2%25C8%2513E%25BD; MoodleSessionmain=37dcec50993632756bf3991b8d058f41; MoodleSessionTestmain=swZkSo2hyA; testing=1; sid=866d620ce6840617f7a2df92aca3dd69; MOODLEID_main=%25E2%25C8%2513E%25BD

      _SERVER[PATH] /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

      _SERVER[SERVER_SIGNATURE] no value

      _SERVER[SERVER_SOFTWARE] Apache/2.0.52 (Unix) PHP/4.3.9

      _SERVER[SERVER_NAME] linuxweb1.garibaldi.notts.sch.uk

      _SERVER[SERVER_ADDR] 10.0.0.25

      _SERVER[SERVER_PORT] 80

      _SERVER[REMOTE_ADDR] 10.0.2.87

      _SERVER[DOCUMENT_ROOT] /var/www/html/

      _SERVER[SERVER_ADMIN] root@linuxweb1.garibaldi.notts.sch.uk

      _SERVER[SCRIPT_FILENAME] /var/www/html/moodle/admin/phpinfo.php

      _SERVER[REMOTE_PORT] 2586

      _SERVER[GATEWAY_INTERFACE] CGI/1.1

      _SERVER[SERVER_PROTOCOL] HTTP/1.1

      _SERVER[REQUEST_METHOD] GET

      _SERVER[QUERY_STRING] bottomframe=true

      _SERVER[REQUEST_URI] /moodle/admin/phpinfo.php?bottomframe=true

      _SERVER[SCRIPT_NAME] /moodle/admin/phpinfo.php

      _SERVER[PHP_SELF] /moodle/admin/phpinfo.php

      _SERVER[PATH_TRANSLATED] /var/www/html/moodle/admin/phpinfo.php

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Gustav Delius (gwd2 at york.ac.uk) Friday, 8 July 2005, 02:08 AM:

        I have now fixed this.

        However I would like Julian to take a look at this because he may know if the same problem also applies to the random short answer matching question.

        From Gustav Delius (gwd2 at york.ac.uk) Friday, 8 July 2005, 08:14 AM:

        My first fix was actually not quite right. I was misled by the $state->options->order field which however was not consistently implemented. I have now fixed it in a completely different way, not using the order field at all.

        From Gustav Delius (gwd2 at york.ac.uk) Thursday, 14 July 2005, 09:54 PM:

        Julian, can you please check my fix and make sure it is also implemented for all other question types where shuffling is used?

        From Julian Sedding (jps502 at york.ac.uk) Friday, 19 August 2005, 09:55 PM:

        Checked and seems ok.

        Show
        Martin Dougiamas added a comment - From Gustav Delius (gwd2 at york.ac.uk) Friday, 8 July 2005, 02:08 AM: I have now fixed this. However I would like Julian to take a look at this because he may know if the same problem also applies to the random short answer matching question. From Gustav Delius (gwd2 at york.ac.uk) Friday, 8 July 2005, 08:14 AM: My first fix was actually not quite right. I was misled by the $state->options->order field which however was not consistently implemented. I have now fixed it in a completely different way, not using the order field at all. From Gustav Delius (gwd2 at york.ac.uk) Thursday, 14 July 2005, 09:54 PM: Julian, can you please check my fix and make sure it is also implemented for all other question types where shuffling is used? From Julian Sedding (jps502 at york.ac.uk) Friday, 19 August 2005, 09:55 PM: Checked and seems ok.
        Hide
        Michael Blake added a comment -

        assign to a valid user

        Show
        Michael Blake added a comment - assign to a valid user
        Hide
        Michael Blake added a comment -

        assign to a valid user

        Show
        Michael Blake added a comment - assign to a valid user

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: