Fatal error when visiting Year page

Created on 16 November 2022, over 1 year ago
Updated 8 August 2023, 10 months ago

Problem/Motivation

TypeError: explode(): Argument #2 ($string) must be of type string, Drupal\Core\Url given in explode() (line 962 of /var/www/html/web/modules/contrib/calendar/src/CalendarHelper.php)
#0 /var/www/html/web/modules/contrib/calendar/src/CalendarHelper.php(962): explode('/', Object(Drupal\Core\Url))
#1 /var/www/html/web/modules/contrib/calendar/src/CalendarHelper.php(930): Drupal\calendar\CalendarHelper::getViewRouteParameters(Array, Object(Drupal\views\ViewExecutable))
#2 /var/www/html/web/modules/contrib/calendar/src/CalendarHelper.php(912): Drupal\calendar\CalendarHelper::getViewsURL(Object(Drupal\views\ViewExecutable), 'page_month', Array)
#3 /var/www/html/web/modules/contrib/calendar/calendar.theme.inc(89): Drupal\calendar\CalendarHelper::getURLForGranularity(Object(Drupal\views\ViewExecutable), 'month', Array)
#4 [internal function]: template_preprocess_calendar_mini(Array, 'calendar_mini', Array)
#5 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(287): call_user_func_array('template_prepro...', Array)
#6 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(422): Drupal\Core\Theme\ThemeManager->render('calendar_mini', Array)
#7 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#8 /var/www/html/web/core/lib/Drupal/Core/Template/TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array)
#9 /var/www/html/vendor/twig/twig/src/Environment.php(418) : eval()'d code(52): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#10 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_f91d7ad38533f6f474470976fed15eb2->doDisplay(Array, Array)
#11 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#12 /var/www/html/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#13 /var/www/html/web/core/themes/engines/twig/twig.engine(55): Twig\Template->render(Array)
#14 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('modules/contrib...', Array)
#15 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(422): Drupal\Core\Theme\ThemeManager->render('calendar_year', Array)

Steps to reproduce

Click to view the Year calendar page (with no contextual filter entered in the URL)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024