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

Database error when uninstalling a plugin

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.7
    • None
    • Libraries
    • None

    Description

      Debug info:
      Error code: ddltablenotexist
      Stack trace:
       
          line 585 of /lib/dml/moodle_database.php: dml_exception thrown
          line 1828 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
          line 199 of /lib/adminlib.php: call to moodle_database->delete_records()
          line 847 of /lib/classes/plugin_manager.php: call to uninstall_plugin()
          line 99 of /admin/plugins.php: call to core_plugin_manager->uninstall_plugin()
       
      Output buffer: <h2>block_xp</h2>
      

      It seems pretty clear that the problem is due to a call to delete from scheduled_task and not task_scheduled.

          adminlib.php
          // Delete scheduled tasks.
          $DB->delete_records('scheduled_task', array('component' => $pluginname));
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fred Frédéric Massart
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: