Can't create view with calendar / installation required cache rebuild and documentation does not mention this

Created on 1 August 2023, 11 months ago
Updated 17 January 2024, 5 months ago

I'm running Drupal 9.5.10 with PHP 8.1 and the 2.1.1 version of this module. I created a view, added my date field to it, and selected the "Calendar" month format. Nothing happened, except this error in the logs:

Drupal\Component\Plugin\Exception\PluginException: Plugin (calendar_month) instance class "Drupal\calendar_view\Plugin\views\style\CalendarViewMonth" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of /var/www/html/docroot/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).

If I try a week-based calendar display I get this instead:

Drupal\Component\Plugin\Exception\PluginException: Plugin (calendar_week) instance class "Drupal\calendar_view\Plugin\views\style\CalendarViewWeek" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of /var/www/html/docroot/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).

The calendar_month and calendar_week plugins weren't getting registered with Drupal.

Rebuilding Drupal's cache / running 'drush cr' fixed it. While it may seem obvious to run 'drush cr' after installing the module, it isn't part of the Usage instructions on the project home page, which I was following verbatim. Perhaps that should be amended to mention rebuilding caches.

πŸ› Bug report
Status

Closed: works as designed

Version

2.1

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States caspervoogt

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

Comments & Activities

Production build 0.69.0 2024