Unable to Configure a View under settings using Fullcalendar

Created on 23 January 2025, 3 months ago

Problem/Motivation

I am attempting to configure a view using the FullCalendar module, but I get a "Oops, something went wrong. Check your browser's developer console for more details. " and I am unable make any type of configuration updates.

When I click the When field, I can't save the updated configurations

Here are the current error messages:

Warning: Undefined array key "title_field" in /app/web/modules/contrib/fullcalendar/src/Plugin/fullcalendar/type/FullCalendar.php on line 229\nWarning: Undefined array key "url_field" in /app/web/modules/contrib/fullcalendar/src/Plugin/fullcalendar/type/FullCalendar.php on line 253\n

Warning: Undefined array key "date_field" in /app/web/modules/contrib/fullcalendar/src/Plugin/fullcalendar/type/FullCalendar.php on line 277\nWarning: Undefined array key "bundle_type" in /app/web/modules/contrib/fullcalendar/src/Plugin/fullcalendar/type/FullCalendar.php on line 371\n

Warning: Undefined array key "createTarget" in /app/web/modules/contrib/fullcalendar/src/Plugin/fullcalendar/type/FullCalendar.php on line 403

Steps to reproduce

  1. Install Full Calendar version
  2. Go to Views and create new view using and click the Save and edit button.
  3. Under the format heading click the Setting link
  4. You will get an Developers error note

Current environment

  • Drupal 10.3.1
  • PHP 8.3.15
  • FullCalendar 3.0.2
  • SmartDate 4.1.3
πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dlfaison

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

Merge Requests

Comments & Activities

  • Issue created by @dlfaison
  • πŸ‡ΊπŸ‡ΈUnited States erutan

    I just created a new fullcalendar view and can go into settings, make a change, and save the view fine. Existing views work as well.

    What other views plugins do you have? I swear that sometimes VERF going bad on one view will impact another, and there's sometimes odd AJAX errors when you're running a lot of contrib.

    Drupal 10.4.1
    PHP 8.2.27
    No smartdate

    I'd recommend:

    1) Try upgrading to Drupal 10.4.1
    2) Look at the actual error in the dev console. This varies by browser but will be googleable.

  • πŸ‡¦πŸ‡ΉAustria mvonfrie

    I have the same error and get a lot of

    Warning: Undefined array key...

    colors in src/Plugin/views/style/FullCalendar.php on line 302
    title_field in src/Plugin/fullcalendar/type/FullCalendar.php on line 229
    url_field in src/Plugin/fullcalendar/type/FullCalendar.php on line 253
    date_field in src/Plugin/fullcalendar/type/FullCalendar.php on line 277
    bundle_type in src/Plugin/fullcalendar/type/FullCalendar.php on line 371
    createTarget in src/Plugin/fullcalendar/type/FullCalendar.php on line 403
    bundle_type in src/Plugin/fullcalendar/type/FullCalendar.php on line 1477
    [numeric value] in src/Plugin/fullcalendar/type/FullCalendar.php on line 1704

  • πŸ‡¦πŸ‡ΉAustria mvonfrie

    mvonfrie β†’ changed the visibility of the branch 3501869-undefined-array-key to hidden.

  • πŸ‡¦πŸ‡ΉAustria mvonfrie

    mvonfrie β†’ changed the visibility of the branch 3501869-undefined-array-key_3.1.x to hidden.

  • πŸ‡¦πŸ‡ΉAustria mvonfrie

    mvonfrie β†’ changed the visibility of the branch 3501869-undefined-array-key to active.

  • Pipeline finished with Failed
    about 2 months ago
    Total: 200s
    #426977
  • Pipeline finished with Success
    about 2 months ago
    Total: 162s
    #426978
  • πŸ‡¦πŸ‡ΉAustria mvonfrie

    Sorry for the confusion with the many branches, I probably am to tired now.

    • 3501869-undefined-array-key and MR !54 are for the 3.0.x development as this was the base branch suggested by the Git integration.
    • 3501869-undefined-array-key-3.1.x and MR !55 are for the 3.1.x development as I've seen too late that that branch already exists.

    For now I would keep both branches/MRs open as I've only fixes the occurrences reported to me and I'm not sure whether there are more.

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

    Sorry for the delay in responding, Erutan.

    I was able to get the module installed. From the image included in my initial conversation, I was able to configure the module by right clicking on the Settings link which opened the Style options configuration panel in another tab. I made the changes and saved the changes. Then I refreshed my views page and resave it.

    I did uninstall and reinstall the module a second time and I didn't have to open the Settings link in another tab.

    I am running into another issue. Not sure if I should create another ticket or use another forum to address but here it goes.

    Problem
    We are using the calendar to display events using the event content type. From the initial display all seems fine. I expected to click through each month to display the events. However, I realize I am able to only view 4-5 months of events. At this point I do not have the AJAX setting in the view enabled .

    If I enable AJAX, then all of my event show, but it adds this exposed filter, which I do not want. I can hide the exposed filter using CSS and everything seems to display.
    form.views-exposed-form{
    display:none;
    }

    https://www.drupal.org/files/issues/2025-02-18/exposed-filter.png β†’

    I was hoping it would just display all of the events without the Minimum or Maximum date exposed filter.

    Any suggestions or thoughts would be greatly appreciated.

    My current setup (We just had a module update push 2/13)

    • Drupal 10.4.1
    • SmartDate 4.2.1 (we do not use the recurring submodule)
    • PHP 8.3.15
    • FullCalendar 3.0.2
  • πŸ‡ΊπŸ‡ΈUnited States erutan

    @dlfaison the ajax/scrolling thing would be a separate issue - it has nothing to do with what you originally posted. If you keep on tagging unrelated issues onto an existing issue then there's no way to set the status of issues correctly - I'd edit the new issue out of this one and create a new issue. There shouldn't be exposed filters if you don't have them set up in the view. Do you have some other contrib installed that interacts with filters?

    It sounds like reinstalling the module fixed your original issue? If not I'd recommend trying to apply mvonfrie's patch https://git.drupalcode.org/project/fullcalendar/-/merge_requests/55.diff

    I'm able to scroll through a year or so worth of months with AJAX disabled.

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

    will create another ticket. Reinstalling again helped resolve the initial issue.

    The module was installing via composer. I will take a look at mvonfrie's patch as well.

    Thank you again for the help.

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

    If anyone else has this issue, try mvonfrie's patch. If that works, let us know here, if not also let us know then try installing the module a few times, possibly opening the view display the settings in a new tab. :)

Production build 0.71.5 2024