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

Database error when uninstalling a plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.7
    • Libraries
    • None

      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));
      

            Unassigned Unassigned
            fred Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.