Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewing certain places leads to "unexpected error" (InvalidArgumentException: Provided value is out of range) #877

Open
leeomara opened this issue Mar 14, 2025 · 0 comments
Labels
audience: external Public users, not logged in audience: internal For logged in site users, writers, editors, admins Places

Comments

@leeomara
Copy link
Member

This page can be edited (mostly), but cannot be viewed.

https://yukon.ca/en/node/5158/edit

Note that trying to edit the "Opening times" paragraph for that node fails with a nearly identical error.

Steps to reproduce

  1. Load this page https://yukon.ca/en/places/yukon-university-art-collection

alternative:

  1. Load the admin edit interface, https://yukon.ca/en/node/5158/edit
  2. Under Opening details, click on Edit link beside the one "Opening times" paragraph.

Expected outcome

The Location page is displayed

Actual outcome

An error

InvalidArgumentException: Provided value is out of range. in Drupal\time_field\Time::assertInRange() (line 64 of /var/www/yukon-ca-d10/docroot/modules/contrib/time_field/src/Time.php).

Abridged trace looks like

#0 /var/www/yukon-ca-d10/docroot/modules/contrib/time_field/src/Time.php(145): Drupal\time_field\Time::assertInRange()
#1 /var/www/yukon-ca-d10/docroot/modules/contrib/time_field/src/Plugin/Field/FieldFormatter/TimeFormatter.php(36): Drupal\time_field\Time::createFromTimestamp()
#2 /var/www/yukon-ca-d10/docroot/modules/contrib/time_field/src/Plugin/Field/FieldFormatter/TimeFormatter.php(47): Drupal\time_field\Plugin\Field\FieldFormatter\TimeFormatter->viewValue()
#3 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Field/FormatterBase.php(91): Drupal\time_field\Plugin\Field\FieldFormatter\TimeFormatter->viewElements()
#4 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php(268): Drupal\Core\Field\FormatterBase->view()
#5 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(340): Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple()
#6 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(282): Drupal\Core\Entity\EntityViewBuilder->buildComponents()
#7 /var/www/yukon-ca-d10/docroot/modules/contrib/paragraphs/src/ParagraphViewBuilder.php(19): Drupal\Core\Entity\EntityViewBuilder->buildMultiple()
#8 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(239): Drupal\paragraphs\ParagraphViewBuilder->buildMultiple()
#9 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build()
#10 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array()
#11 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback()
#12 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer->doCallback()
#13 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#14 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render()
#15 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field.html.twig_wpPVhi4RwlolFKPPE5iiw_CZR/ijlrosTs3ft4z8GXdwrC7tB6a6FgP1bgFd3VG8wkwcI.php(231): Drupal\Core\Template\TwigExtension->escapeFilter()
#16 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_916daa47961bc3ae514f0ccef75a4a46->block_field_value()
#17 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field.html.twig_wpPVhi4RwlolFKPPE5iiw_CZR/ijlrosTs3ft4z8GXdwrC7tB6a6FgP1bgFd3VG8wkwcI.php(212): Twig\Template->yieldBlock()
#18 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_916daa47961bc3ae514f0ccef75a4a46->block_field_item()
#19 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field.html.twig_wpPVhi4RwlolFKPPE5iiw_CZR/ijlrosTs3ft4z8GXdwrC7tB6a6FgP1bgFd3VG8wkwcI.php(171): Twig\Template->yieldBlock()
#20 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_916daa47961bc3ae514f0ccef75a4a46->block_field_items()
#21 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field.html.twig_wpPVhi4RwlolFKPPE5iiw_CZR/ijlrosTs3ft4z8GXdwrC7tB6a6FgP1bgFd3VG8wkwcI.php(85): Twig\Template->yieldBlock()
#22 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_916daa47961bc3ae514f0ccef75a4a46->block_field()
#23 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field.html.twig_wpPVhi4RwlolFKPPE5iiw_CZR/ijlrosTs3ft4z8GXdwrC7tB6a6FgP1bgFd3VG8wkwcI.php(59): Twig\Template->yieldBlock()
#24 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(387): __TwigTemplate_916daa47961bc3ae514f0ccef75a4a46->doDisplay()
#25 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(343): Twig\Template->yield()
#26 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(358): Twig\Template->display()
#27 /var/www/yukon-ca-d10/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render()
#28 /var/www/yukon-ca-d10/docroot/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#29 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#30 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render()
#31 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#32 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render()
#33 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_paragraph--opening-times-_KHVv_4LR2rP4JDWgyjQt9Fnmi/dCAD6KsNO7EFmw--SWhrm6JIbR6L_VPn35xelfilWj4.php(56): Drupal\Core\Template\TwigExtension->escapeFilter()
#34 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(387): __TwigTemplate_3d1b89af55ecabfb2eb7c5fcfbcae917->doDisplay()
#35 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(343): Twig\Template->yield()
#36 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(358): Twig\Template->display()
#37 /var/www/yukon-ca-d10/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render()
#38 /var/www/yukon-ca-d10/docroot/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#39 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#40 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render()
#41 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#42 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render()
#43 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field--field-opening-time_1OMFUMpB9Y_3gDPVLgEFmKpmm/-OzAYoDyGYZ8__6H3L8__QK7X9pHKYXMhD3eZeOITG8.php(231): Drupal\Core\Template\TwigExtension->escapeFilter()
#44 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_46df258b53b5fe76b2f681806cd4db15->block_field_value()
#45 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field--field-opening-time_1OMFUMpB9Y_3gDPVLgEFmKpmm/-OzAYoDyGYZ8__6H3L8__QK7X9pHKYXMhD3eZeOITG8.php(212): Twig\Template->yieldBlock()
#46 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_46df258b53b5fe76b2f681806cd4db15->block_field_item()
#47 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field--field-opening-time_1OMFUMpB9Y_3gDPVLgEFmKpmm/-OzAYoDyGYZ8__6H3L8__QK7X9pHKYXMhD3eZeOITG8.php(171): Twig\Template->yieldBlock()
#48 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_46df258b53b5fe76b2f681806cd4db15->block_field_items()
#49 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field--field-opening-time_1OMFUMpB9Y_3gDPVLgEFmKpmm/-OzAYoDyGYZ8__6H3L8__QK7X9pHKYXMhD3eZeOITG8.php(85): Twig\Template->yieldBlock()
#50 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(431): __TwigTemplate_46df258b53b5fe76b2f681806cd4db15->block_field()
#51 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_field--field-opening-time_1OMFUMpB9Y_3gDPVLgEFmKpmm/-OzAYoDyGYZ8__6H3L8__QK7X9pHKYXMhD3eZeOITG8.php(59): Twig\Template->yieldBlock()
#52 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(387): __TwigTemplate_46df258b53b5fe76b2f681806cd4db15->doDisplay()
#53 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(343): Twig\Template->yield()
#54 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(358): Twig\Template->display()
#55 /var/www/yukon-ca-d10/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render()
#56 /var/www/yukon-ca-d10/docroot/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#57 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#58 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render()
#59 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#60 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render()
#61 /var/www/yukon-ca-d10/docroot/sites/default/files/php/twig/67d4a5a34da79_node--directory-records-p_c8n0wsg_geAW0ijuQbRiyD-tp/4NJlwWCYPXZGfN-DahQWR8H52NRWedmzZxCOtPIeh1A.php(178): Drupal\Core\Template\TwigExtension->escapeFilter()
#62 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(387): __TwigTemplate_e5aa68396cbef2cc5ee822e18a7f0af4->doDisplay()
#63 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(343): Twig\Template->yield()
#64 /var/www/yukon-ca-d10/vendor/twig/twig/src/Template.php(358): Twig\Template->display()
#65 /var/www/yukon-ca-d10/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render()
#66 /var/www/yukon-ca-d10/docroot/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#67 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#68 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render()
#69 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#70 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render()
#71 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#72 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(231): Drupal\Core\Render\Renderer->executeInRenderContext()
#73 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#74 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#75 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#76 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#77 /var/www/yukon-ca-d10/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#78 /var/www/yukon-ca-d10/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#79 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#80 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#81 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#82 /var/www/yukon-ca-d10/docroot/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#83 /var/www/yukon-ca-d10/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#84 /var/www/yukon-ca-d10/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#85 /var/www/yukon-ca-d10/docroot/modules/contrib/shield/src/ShieldMiddleware.php(263): Drupal\page_cache\StackMiddleware\PageCache->handle()
#86 /var/www/yukon-ca-d10/docroot/modules/contrib/shield/src/ShieldMiddleware.php(130): Drupal\shield\ShieldMiddleware->bypass()
#87 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle()
#88 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#89 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#90 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#91 /var/www/yukon-ca-d10/docroot/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#92 /var/www/yukon-ca-d10/docroot/index.php(19): Drupal\Core\DrupalKernel->handle()
#93 {main}
@leeomara leeomara added audience: external Public users, not logged in audience: internal For logged in site users, writers, editors, admins Places labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audience: external Public users, not logged in audience: internal For logged in site users, writers, editors, admins Places
Projects
None yet
Development

No branches or pull requests

1 participant