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

Error: Undefined variable $glossary

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1.19, 4.5.5, 5.0.1, 5.1
    • Glossary

      The error appears when attempting to use the mod/glossary/showentry.php page to search for concepts. This functionality is enabled in the code when the "concept" and "courseid" parameters are passed. When searching by concept, the $glossary variable is never created, and this causes an error if debugging is enabled.

      To reproduce:

      1. Enable "Display debug messages" (debugdisplay).
      2. Set "Debug messages" (debug) to "DEVELOPER: extra Moodle debug messages for developers."
      3. Create a course and identify its auto-incrementing ID (you can use an existing one).
      4. In your browser, open the link: https://MOODLE_URL/mod/glossary/showentry.php?concept=someconcepto&courseid=# (replace # with the course ID from step 3).
      5. The error "Undefined variable $glossary" appears.

       

      Note: A glossary or the concept does not need to exist. If the concept is not found, you should see a blank page.

        1. glossary_error.png
          114 kB
          David Herney Bernal

            cirano David Herney Bernal
            cirano David Herney Bernal
            Luca Bösch Luca Bösch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.