Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5241

Side bar plugin cannot be uninstalled.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.7.1
    • Block: Side bar
    • None
    • 2.7.1 (2014051401)
    • MOODLE_27_STABLE

      Trying to uninstall the side bar plugin in the manage blocks page displays an error message and the plugin is not uninstalled.

      Table "course_sections_availability" does not exist
       
      More information about this error
      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 290 of /blocks/side_bar/block_side_bar.php: call to moodle_database->delete_records()
          line 2048 of /lib/blocklib.php: call to block_side_bar->instance_delete()
          line 160 of /lib/classes/plugininfo/block.php: call to blocks_delete_instance()
          line 188 of /lib/adminlib.php: call to core\plugininfo\block->uninstall_cleanup()
          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()
      

      The plugin seems to try to delete records in tables that do not exist. Lines 290 291 in block_side_bar.php:

      $DB->delete_records('course_sections_availability', array('coursesectionid' => $this->config->section_id));
      $DB->delete_records('course_sections_avail_fields', array('coursesectionid' => $this->config->section_id));
      

            jfilip Justin Filip (Inactive)
            itamart Itamar Tzadok (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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