Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1422

WWMQT question script requires courseid or cmid error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4
    • None
    • None
    • MOODLE_19_STABLE

    Description

      When attempting to install and run WWMQT (see, http://webwork.maa.org/wiki/Moodle_Question_Type_Installation) on Moodle 1.9.2+ the instal appears to work correctly but attempts to add questions result in an error that the script requires courseid or cmid.

      A patch has been created by Jerome Charaoui but there have been some issues with it. Once it can be determined that Jerome's fix resolves all issues, the wwmqt svn can be fixed and this will be a working moodle question type again, at least until Moodle 2.0??

      Below you will find wwmqt-moodle-195.diff, a diff file created for the purposes of patching the target file, /question/type/webwork/edit_webwork_form.php, as well as a copy of the file that should result from the patch.

      Please explore the patch and the replacement file and advise if you can add a question. An example question, order_of_ops.pg is included (you will need to open the pg file with a text editor and then copy the text into the question field when you create the new wwmqt question.)

      Attachments

        1. edit_webwork_form.php
          10 kB
        2. order_of_ops.pg
          0.7 kB
        3. wwmqt_perm_fixes_195.diff
          3 kB
        4. wwmqt-moodle-195.diff
          4 kB

        Activity

          People

            net-buoy Marc Grober
            net-buoy Marc Grober
            Tim Hunt
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: