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

Typo in constant name results in a PHP error (E_NOTICE level)

XMLWordPrintable

    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_22_STABLE
    • Easy
    • Hide

      1/ Upload the following file:

      <?php
       
      require_once('config.php');
       
      $CFG->debug = 0;
       
      $ignore = $PAGE->legacythemeinuse;

      2/ Run the file

      Expected Result:
      no output

      Actual Result - a notce and debug notice is displayed

      Show
      1/ Upload the following file: <?php   require_once('config.php');   $CFG->debug = 0;   $ignore = $PAGE->legacythemeinuse; 2/ Run the file Expected Result: no output Actual Result - a notce and debug notice is displayed

      Line 547 of lib/pagelib.php refers to DEVELOPER_DEBUG (which is undefined) instead of DEBUG_DEVELOPER.

            poltawski Dan Poltawski
            paul.n Paul Nicholls
            Sam Hemelryk Sam Hemelryk
            Andrew Davis Andrew Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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