Calendar not shown on the view page

Created on 18 September 2023, about 1 year ago
Updated 1 December 2023, about 1 year ago

Problem/Motivation

Calendar not shown on the view page

Steps to reproduce

Create the view and go to the view page, the calendar is not shown, whereas the calendar comes up in the view preview. I also have custom js, but this error in the console is related to the modules code.

Getting the error "Uncaught TypeError: Cannot read properties of undefined (reading 'calendar_options')"

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

5.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 @syeda-farheen
  • 🇮🇳India shiv_yadav

    Hello @syeda-farheen, i hvn't got any error followed given step.
    my configuration:
    drupal-9.5.10
    php-8.1.2

  • Status changed to Closed: cannot reproduce about 1 year ago
  • 🇦🇺Australia mingsong 🇦🇺

    It’s very likely it was caused by other JS code from other module or theme.

  • 🇺🇸United States dlfaison

    I am getting the same error as well. I am currently using the following:

    "drupal/fullcalendar_view": "^5.1", 5
    Drupal 10.1.5

    I can get it to work in the views preview as well.

  • 🇨🇦Canada RundleSG

    I can confirm this is occurring on 5.1.13

  • 🇦🇺Australia mingsong 🇦🇺

    Till 19th November, there were 7,116 sites using this version.

    As the release notes suggested, If your theme/module/patch overrided the calendar view template, you have to make sure following template variables available to your view template and are appropriate populated.

    * - options: View plugin style options:
    * - classes: CSS classes.
    * - defaultDate: Default date of the calendar
    * - start: Field name of start date
    * - end: Field name of end date
    * - languageSelector: Flag for the language dropdown box
    * - view_index: View index
    * - view_id: The id of the view
    * - display_id: The view display id
    * - showAddEvent: Show add event button
    * - entity_id: The Entity type machine name

    For example, your template must have the following line.

  • Status changed to Closed: works as designed about 1 year ago
  • 🇦🇺Australia mingsong 🇦🇺

    It’s duplicated to 🐛 Getting Js error of calendar_options Closed: works as designed

Production build 0.71.5 2024