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

When enable debugging message, shows some warning messages for block_glossary_random.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.9
    • Component/s: Glossary
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      just did a CVS update (as of 6/14/2007) and 1.8.1+ still have this issue, when you check the "Display debug messages" and click into any courses, it will show you:

      Notice: Trying to get property of non-object in C:\amp\moodle\moodle18p\moodle\blocks\glossary_random\block_glossary_random.php on line 186
      Error: Invalid context creation request for level "70", instance "".

      • line 1685 of lib\accesslib.php: call to debugging()
      • line 1844 of lib\accesslib.php: call to create_context()
      • line 186 of blocks\glossary_random\block_glossary_random.php: call to get_context_instance()
      • line 202 of blocks\moodleblock.class.php: call to block_glossary_random->get_content()
      • line 226 of blocks\moodleblock.class.php: call to block_base->is_empty()
      • line 331 of lib\blocklib.php: call to block_base->_print_block()
      • line 71 of course\format\weeks\format.php: call to blocks_print_group()
      • line 205 of course\view.php: call to require()

      Notice: Trying to get property of non-object in C:\amp\moodle\moodle18p\moodle\blocks\glossary_random\block_glossary_random.php on line 187

      Notice: Trying to get property of non-object in C:\amp\moodle\moodle18p\moodle\blocks\glossary_random\block_glossary_random.php on line 193

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            chuang Wen Hao Chuang
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08