Paginated Views do not work

Created on 13 March 2025, about 2 months ago

Problem/Motivation

As soon as a page view hits the pagination limit, the page stops working. The frontend just shows a blank page with an error message, and the Drupal last reports page shows the following exception:

InvalidArgumentException: $string ("1") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (Zeile 132 in /opt/drupal/docroot/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php).

#0 /opt/drupal/docroot/core/includes/bootstrap.inc(104): Drupal\Core\StringTranslation\TranslatableMarkup->__construct()
#1 /opt/drupal/docroot/sites/default/files/php/twig/67d0ae86e6528_varbase_components:pagina_TSpggK4s7x-r3Sbl-5FbwuPhi/wi8mPtbrMhKOaSPp0DuDcXYO1KyjdP2KJGygV7DvBoo.php(241): t()
#2 /opt/drupal/vendor/twig/twig/src/Template.php(393): __TwigTemplate_579b8e67f7402efe722ec568d16e2c27->doDisplay()
#3 /opt/drupal/docroot/sites/default/files/php/twig/67d0ae86e6528_views-mini-pager.html.twi_dhy3RexQ29n7MgSlhNiEvr76Z/82IqduVynY9ZUwCFNwsV4q8i8mpoLOTYbIveyKgDfQM.php(45): Twig\Template->yield()
#4 /opt/drupal/vendor/twig/twig/src/Template.php(393): __TwigTemplate_1d4a8373c4b6e2b8325d1113dad9ca6e->doDisplay()
#5 /opt/drupal/vendor/twig/twig/src/Template.php(349): Twig\Template->yield()
#6 /opt/drupal/vendor/twig/twig/src/Template.php(364): Twig\Template->display()
#7 /opt/drupal/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render()
#8 /opt/drupal/docroot/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#9 /opt/drupal/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#10 /opt/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render()
#11 /opt/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#12 /opt/drupal/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(476): Drupal\Core\Render\Renderer->render()
#13 /opt/drupal/docroot/sites/default/files/php/twig/67d0ae86e6528_varbase_components:views-_GD7y1wnzo4fHVXe4E5pp-ZQt6/5_1kzp4E6uAmSA7eZNRpQDsDOQL3S7jksvCTzoK7u3k.php(140): Drupal\Core\Template\TwigExtension->escapeFilter()
#14 /opt/drupal/vendor/twig/twig/src/Template.php(393): __TwigTemplate_dc930f85be73402f41f3f0288e4d1ea4->doDisplay()
#15 /opt/drupal/docroot/sites/default/files/php/twig/67d0ae86e6528_views-view.html.twig_70j_UXlBb41PYipwzn_fy0pSp/N4eJBeUIb1u-s79kZ1gZ9OHNro26ymPW4thHbbpvRjU.php(44): Twig\Template->yield()
#16 /opt/drupal/vendor/twig/twig/src/Template.php(393): __TwigTemplate_790a37b2f041b97b391304aee8eb02f8->doDisplay()
#17 /opt/drupal/vendor/twig/twig/src/Template.php(349): Twig\Template->yield()
#18 /opt/drupal/vendor/twig/twig/src/Template.php(364): Twig\Template->display()
#19 /opt/drupal/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render()
#20 /opt/drupal/docroot/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#21 /opt/drupal/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#22 /opt/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render()
#23 /opt/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(504): Drupal\Core\Render\Renderer->doRender()
#24 /opt/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#25 /opt/drupal/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render()
#26 /opt/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#27 /opt/drupal/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(231): Drupal\Core\Render\Renderer->executeInRenderContext()
#28 /opt/drupal/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#29 /opt/drupal/docroot/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#30 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#31 /opt/drupal/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#32 /opt/drupal/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#33 /opt/drupal/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#34 /opt/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#35 /opt/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#36 /opt/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#37 /opt/drupal/docroot/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#38 /opt/drupal/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#39 /opt/drupal/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch()
#40 /opt/drupal/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup()
#41 /opt/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#42 /opt/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#43 /opt/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#44 /opt/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#45 /opt/drupal/docroot/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#46 /opt/drupal/docroot/index.php(19): Drupal\Core\DrupalKernel->handle()
#47 {main}

Steps to reproduce

Create a view with enough items so that the pagination will be displayed.

Proposed resolution

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Active

Version

10.0

Component

Code

Created by

🇩🇪Germany scroogie

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

Comments & Activities

Production build 0.71.5 2024