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

'throw coding_exception' (missing new) in moodlelib

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 2.2
    • 2.2
    • Libraries
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE
    • MDL-30409-master
    • Hide

      DIFFICULT

      0. Ensure debugging is set to max and to display, etc.

      1. Go into some code or other and add the following line:

      plugin_supports('a', 'b', 'c');

      2. Run the code.

      + Verify that it throws a coding_exception which should be displayed etc: 'Coding error detected, it must be fixed by a programmer: Invalid component used in plugin_supports():a_b'

      + In particular it should not display a php fatal error.

      Show
      DIFFICULT 0. Ensure debugging is set to max and to display, etc. 1. Go into some code or other and add the following line: plugin_supports('a', 'b', 'c'); 2. Run the code. + Verify that it throws a coding_exception which should be displayed etc: 'Coding error detected, it must be fixed by a programmer: Invalid component used in plugin_supports():a_b' + In particular it should not display a php fatal error.

      Some places in moodlelib have invalid syntax (throw coding_exception when it needs to be throw new coding_exception)

            quen Sam Marshall
            quen Sam Marshall
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Aparup Banerjee Aparup Banerjee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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