Can't uninstall calendar_view module

Created on 16 January 2024, about 1 year ago
Updated 17 August 2024, 6 months ago

Hi,

I'm trying to uninstall the calendar_view plugin but i get this error:

The website encountered an unexpected error. Please try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "calendar" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: calendar_week, calendar_month, entity_reference_revisions, maps_common, geolocation_layer, entity_reference, default_summary, opml, table, rss, unformatted_summary, grid, html_list, default in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Regards.

πŸ› Bug report
Status

Postponed: needs info

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @orcalator
  • Status changed to Needs review about 1 year ago
  • Do you still have a View using the Calendar View display?

    If yes, this is your issue.

    Reinstall the module, change the display and uninstall the module.

    Let me know.

    TY

  • Hi @matthieuscarset

    I deleted all the views that were connected to the calendar but i still can't remove calendar_view module. Same error is displayed. Don't know what to do.

    regards.

  • πŸ‡ΊπŸ‡ΈUnited States dealancer Washington D.C.

    Wow! This is a breaking update, it should be either be a different branch or have an upgrade path.

  • Status changed to Postponed: needs info 11 months ago
  • I do not manage to reproduce the issue.

    I tested on several different projects of mine, existing Drupal 9 and D10 sites and also from scratch with the minimal and standard profile.

    I can install and uninstall the calendar_view correctly.

    I think your issue is related to the old plugin which where named `calendar` and was removed in 2.0.7.

    There should not be any issue in any other versions.

    A workaround if you're stuck in this situation:

    • composer require drupal/calendar_view:2.0.6
    • drush en calendar_view
    • drush cr
    • Delete or update your Calendar Views
    • drush pmu calendar_view
    • composer remove drupal/calendar_view

    Could you please confirm that you manage to uninstall the plugin this way?

  • Status changed to Closed: outdated 11 months ago
  • Status changed to Active 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States arnoldbird

    I had a similar issue today. Even after re-installing calendar_view, I continued to see an error saying the calendar_month plugin did not exist. Clearing the cache did not fix the problem but visiting /update.php fixed that issue. I was then able to delete the view display that depends on the calendar_view module.

    However, I was still not able to delete the calendar_view module without deleting my events view, even though none of the displays in the view actually depended on the calendar_view module at this point. I then exported the config for the view and saw that calendar_view was still listed as a dependency in the config, even though none of the view's remaining displays use any of the formats provided by calendar_view. I then manually removed the dependency on calendar_view by editing the view's config file, and I then imported that config. I was then able to uninstall calendar_view without deleting my events view.

  • Status changed to Postponed: needs info 6 months ago
  • I'm sorry but i don't manage to reproduce the error.

    I installed the module on a a fresh D11 site. I created a new Calendar View and then I uninstalled the module without any issue.

    There is no issue with the config too - as the view is deleted.

    I can even reimport the configuration with drush cim and the module is reinstalled + the view recreated.

    Marking this issue as Postponed. We need a detailed step by step method to reproduce it.

Production build 0.71.5 2024