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...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | FireShot Capture 011 - Extender.png | 183.61 KB | ubriqui |
Comments
Comment #2
ubriqui commentedThe 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.
Comment #3
ubriqui commentedComment #4
ubriqui commentedIt seems that I have solved it by enabling the missing modules of fullcalendar
Comment #5
mankin commentedWho are (missing modules)?
Comment #6
mankin commentedDon't work for me with exactly same modules... #4
Comment #7
afagioliThe 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.
Comment #8
afagioliComment #10
afagioliComment #11
afagioliReview https://www.drupal.org/project/bat/releases/8.x-10.3-rc1 needed