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

unhandled fatal error in dependent (instances of) plugins when main plugin is being deleted

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.3.6, 2.4.3, 2.5
    • None
    • Administration
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE

    Description

      Anthony Borrow brought it up :
      "
      Is there for an admin deleting a block which may be a dependency for something else? I'm wondering if it might be helpful to have a database table of dependencies to check against.

      Here is what happened that made me think of this: I was receiving a PHP notice for a block (in this case formal languages) which the correctwriting question type lists as a dependency. After deleting the formal languages block I received a PHP error that prevented me from accessing the blocks page.

      I think we may want to do better at protecting admins from potentially breaking their site - we do not allow addons to be installed that do not meet the dependencies, I think we should check for dependencies when attempting to delete a plugin
      "

      We just need to re-invoke the dependencies check when deleting.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nebgor Aparup Banerjee
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: