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

PHP notice when configured to use a missing site policy handler

    XMLWordPrintable

Details

    Description

      Synopsis

      When the admin configures a plugin to be used as a site policy handler, and that plugin then becomes unavailable (e.g. is uninstalled), a PHP notice is displayed to users.

      Steps to reproduce

      • Put the following into your config.php: $CFG->sitepolicyhandler = 'foo_bar';
      • Log in as a student
      • Expected behaviour: Nothing special
      • Actual behaviour: PHP notice is displayed:
        Notice: Undefined index: foo_bar in .../privacy/classes/local/sitepolicy/manager.php on line 66

      Attachments

        Activity

          People

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            Luca Bösch Luca Bösch
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17/May/18