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

If display_errors is set, Admins are not adequately warned.

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.3
    • None
    • Administration
    • MOODLE_31_STABLE
    • Easy

    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

            Unassigned Unassigned
            moogs Sean Moogan
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: