Problem/Motivation

There is an error when i load Full calendar in a twig template as this: {{ content.field_availability_daily}}

Error:

TypeError: bat_fullcalendar_configure(): Argument #1 ($user_settings) must be of type array, null given, called in /home/turo9817/public_html/modules/contrib/bat/modules/bat_fullcalendar/bat_fullcalendar.module on line 262 in bat_fullcalendar_configure() (line 65 of modules/contrib/bat/modules/bat_fullcalendar/bat_fullcalendar.module).
template_preprocess_bat_fullcalendar()
call_user_func_array() (Line: 261)
Drupal\Core\Theme\ThemeManager->render() (Line: 490)
Drupal\Core\Render\Renderer->doRender() (Line: 503)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 660)
bee_entity_view_alter() (Line: 552)
Drupal\Core\Extension\ModuleHandler->alter() (Line: 305)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple() (Line: 239)
Drupal\Core\Entity\EntityViewBuilder->build()
call_user_func_array() (Line: 113)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 886)
Drupal\Core\Render\Renderer->doCallback() (Line: 431)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 293)
__TwigTemplate_96d2d1a264e8f2457dcc8825bb53585a->doDisplay() (Line: 388)
Twig\Template->yield() (Line: 344)
Twig\Template->display() (Line: 359)
Twig\Template->render() (Line: 51)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 490)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 637)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 39)
Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 45)
Drupal\services\StackMiddleware\FormatSetter->handle() (Line: 263)
Drupal\shield\ShieldMiddleware->bypass() (Line: 219)
Drupal\shield\ShieldMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Before it was OK...

Comments

mankin created an issue. See original summary.

ubriqui’s picture

The exact same thing is happening to me; I installed BEE and created a content type with BEE settings. When I create a sample content type, the error message appears.

ubriqui’s picture

ubriqui’s picture

StatusFileSize
new183.61 KB

It seems that I have solved it by enabling the missing modules of fullcalendar

mankin’s picture

Who are (missing modules)?

mankin’s picture

Don't work for me with exactly same modules... #4

afagioli’s picture

The bat_fullcalendar sub-module required a significant update to align with the recent versions of the FullCalendar library. This incompatibility is the root caused of recurring errors. Community contributions in the form of a merge request (MR) are welcome to help modernize this component.

afagioli’s picture

Status: Active » Needs work

  • afagioli committed 9e9ed177 on 8.x-10.x
    Issue #3554606 by afagioli: Make user_settings parameter optional in...
afagioli’s picture

Status: Needs work » Needs review
afagioli’s picture