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

Fatal error when adding new quiz or accessing existing quiz

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Not a bug
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      Ubuntu 10.04.2 LTS, Apache/2.2.14, PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch (cli), mysql Ver 14.14 Distrib 5.1.41,
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      When trying to access an existing quiz, or when adding a new quiz to a course, the following error is received:

      Fatal error: Can't use function return value in write context in /srv/moodle2/mod/quiz/locallib.php on line 1157

      Steps to reproduce:

      1. Either create a new course or access an existing course
      2. Click Add an Activity / Quiz

      ...or:

      1. Go to an existing course with a quiz already in place
      2. Click on quiz

      Any quizzes which were already in place were there prior to the upgrade to this week's weekly build (2.0.2+ (Build: 20110323)). The last build was 2 weeks' prior (2.0.2+, 20110309).

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: