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

            Assignee:
            mudrd8mz David Mudrák (@mudrd8mz)
            Reporter:
            mudrd8mz David Mudrák (@mudrd8mz)
            Peer reviewer:
            Luca Bösch
            Integrator:
            Andrew Nicols
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/18