views template Week, \Drupal\calendar\Plugin\views\style\CalendarStyle: A calendar date argument is required when using the calendar style, but it is missing or is not using the default date.

Created on 26 August 2016, over 8 years ago
Updated 18 June 2024, 10 months ago

I know it's similar to #1272976: Better Help Mising - 'calendar_plugin_style: The calendar row plugin is required when using the calendar style but it is missing.' β†’ , however this issue is for tracking D8 version.
Drupal 8.1.7 or 8.1.8
Calendar 8.x-1.x-dev --June 26, 2016
View Template 8.x-1.0-alpha1
tested on fresh install - no content

When creating view from template for content type 'Event'.
View is generated, but also error:
\Drupal\calendar\Plugin\views\style\CalendarStyle: A calendar date argument is required when using the calendar style, but it is missing or is not using the default date.

Traced to 'Week' display's Contextual Filter that has a 'Broken/missing handler' with details:
Enabling the appropriate module will may solve this issue. Otherwise, check to see if there is a module update available.
and following details available.

id: field_eventdate_value_year_week
table: node__field_eventdate
field: field_eventdate_value_year_week
relationship: none
group_type: group
admin_label:
default_action: default
title_enable:
title:
default_argument_type: date
default_argument_skip_url:
specify_validation: 1
plugin_id: datetime_year_week

On the 'Week' display, removing the broken contextual filter will fix the entire view (bar week) and all displays come back no dramas.
On the 'Week' display, changing the contextual filter to "Content: Calendar created year_week" shows that the weekly calendar render works, but obviously the create date is not desired.
From what I can see it looks like the filter "Content: node.field_eventdate (year_week)" is not getting pulled into the view. It is also not availablke for selection and looks like the plugin that is required for the Week display to work.

It tried various D8 setups, deleting and recreating views,module and cache tables, bug persists.
Couldn't find try previous D8 version ( #1272976-89: Better Help Mising - 'calendar_plugin_style: The calendar row plugin is required when using the calendar style but it is missing.' β†’ ) to try.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia pietpomp

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ͺπŸ‡ΈSpain Carlos Romero

    Carlos Romero β†’ made their first commit to this issue’s fork.

  • Merge request !28add rowplugin if it doesn't exist β†’ (Open) created by Carlos Romero
  • Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update 10 months ago
    Waiting for branch to pass
  • Status changed to Needs review 10 months ago
  • πŸ‡ͺπŸ‡ΈSpain Carlos Romero

    Hi, I know this issue has been closed, but I have this error and I can't solve it in any way.

    I have made a view with custom entities that use a date type field (added from drupal, this field is not in the entity definition - baseFieldDefinitions).

    In the view I have the calendar format and calendar entities configured, but the rowplugin arrives empty.

    I've added a line that extracts the rowplugin from the displayHandler and sets it to the view if it's not there.

    I don't know if it is the best solution but in my scenario it works, I hope for help to improve the code I have added.

    Thank you so much.

  • πŸ‡ΊπŸ‡ΈUnited States robbt

    I also had this issue. Just creating a view setting it to a monthly calendar and then adding the date as a contextual filter and it breaks. This could be a documentation issue as I don't see it anywhere described how to set this up. I get this error when trying to view the page with the block defined - \Drupal\calendar\Plugin\views\style\CalendarStyle: The calendar row plugin is required when using the calendar style, but it is missing.

  • πŸ‡ͺπŸ‡ΈSpain Carlos Romero

    Robbt I invite you to try the patch that I have shared in the fork:

    28.patch

    I hope it helps you, greetings

Production build 0.71.5 2024