Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-10830

Parse error when creating new categories within a quiz

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.8.2
    • 1.8.3
    • Quiz
    • None
    • WIMP Setup
      Microsoft Windows 2003 - IIS 6 - MySql 4.1.7 - PHP 5.1.4
    • MySQL
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE

    Description

      We have recently upgraded from 1.6.3 to 1.8.2 and have discovered a parse error when you try to create quiz categories inside moodle.

      The error points to line 442 of moodle/question/category_class.php

      echo '<input type="hidden" name="sesskey" value=" ' . $USER->sesskey . ' " />';s

      I'm not sure if anyone has come across this but luckily its not too bad, and the solution seems to be to remove the random s at the end of the line which we assume is a typo.

      So the new line should display

      echo '<input type="hidden" name="sesskey" value=" ' . $USER->sesskey . ' " />';

      Thanks

      Attachments

        Activity

          People

            jamiesensei Jamie Pratt
            mikec Mike Chambers
            Anthony Borrow Anthony Borrow
            Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07