Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Installed the module via composer, set up and configured the view.
Noticed that when I attempt to go into settings, nothing happens. Tried drush cr/updb/entup to make sure nothing obvious was the issue. Checked the server logs:
NOTICE: PHP message: Error: Call to undefined function Drupal\fullcalendar_view\Plugin\views\style\taxonomy_vocabulary_get_names() in /app/modules/contrib/fullcalendar_view/src/Plugin/views/style/FullCalendarDisplay.php on line 272 #0 /app/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(1670): Drupal\fullcalendar_view\Plugin\views\style\FullCalendarDisplay->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState))
#1 /app/core/modules/views/src/Plugin/views/display/PathPluginBase.php(435): Drupal\views\Plugin\views\display\DisplayPluginBase->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState))
#2 /app/core/modules/views/src/Plugin/views/display/Page.php(239): Drupal\views\Plugin\views\display\PathPluginBase->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState))
#3 /app/core/modules/views_ui/src/Form/Ajax/Display.php(74): Drupal\views\Plugin\views\display\Page->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState))
#4 [internal function]: Drupal\views_ui\Form\Ajax\Disp...
Output looks something like this:
Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#4 | fullcalendar_view-views-plugin-settings-error-2987853-4-D8.patch | 7.18 KB | Wongjn |
Comments
Comment #2
Ewout GoosmannThis error occurs when you have enabled the Full Calender Format as view format, but don't have the Taxonomy module (from core) enabled. This happens because the function "taxonomy_vocabulary_get_names()" is called in "/src/Plugin/views/style/FullCalendarDisplay.php". This function comes from the Taxonomy module.
The Taxonomy module should be added as a dependency to the Fullcalendar View module.
Comment #3
Mukesh Kumar Bharti CreditAttribution: Mukesh Kumar Bharti as a volunteer commentedI have created a full Calendar. The result is : "Select Language:" with select box.
I have followed the tutorial https://www.ostraining.com/blog/drupal/how-to-integrate-a-calendar-in-dr...
Please suggest a solution
Comment #4
Wongjn CreditAttribution: Wongjn as a volunteer commentedThis patch changes the plugin settings form to only add the taxonomy-related form fields if the taxonomy module is active.
This means that the settings form can actually opened, but may not solve the problem of only the language select showing.
Comment #7
MingsongThanks for the patch.
Ported.
Comment #8
MingsongComment #9
Mingsong