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

If display_errors is set, Admins are not adequately warned.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.3
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      Within setup.php, we check to see if the PHP setting "display_errors" is enabled and if so, we define "WARN_DISPLAY_ERRORS_ENABLED", which adds a notice to the Notifications page, as well as a warning when running the security report.

      The "WARN_DISPLAY_ERRORS_ENABLED" value will only get defined if "display_errors" is enabled in the php.ini, not if $CFG->debugdisplay is set.

      Steps to Reproduce:

      • In php.ini, set display_errors = 0
      • In config.php set $CFG->debugdisplay = 1
      • Navigate to Site Administration > Reports > Security Overview and see that "Displaying of PHP Errors" is marked as "OK"

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            moogs Sean Moogan
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: