ypeError: Argument 1 passed to Drupal\views\ViewExecutable::setArguments() must be of the type array, null given, called in /Applications/MAMP/htdocs/hocd9/modules/blocktabs/src/Plugin/Tab/ViewsTab.php on line 146 in Drupal\views\ViewExecutable->setArgume

Created on 20 March 2021, over 3 years ago
Updated 20 May 2023, over 1 year ago

Create block tabs,
Added to region from blocks

When I visit the URL

page says "The website encountered an unexpected error. Please try again later."
and this error is logged

TypeError: Argument 1 passed to Drupal\views\ViewExecutable::setArguments() must be of the type array, null given, called in /Applications/MAMP/htdocs/hocd9/modules/blocktabs/src/Plugin/Tab/ViewsTab.php on line 146 in Drupal\views\ViewExecutable->setArguments() (line 494 of /Applications/MAMP/htdocs/hocd9/core/modules/views/src/ViewExecutable.php)

#0 /Applications/MAMP/htdocs/hocd9/modules/blocktabs/src/Plugin/Tab/ViewsTab.php(146): Drupal\views\ViewExecutable->setArguments(NULL)
#1 /Applications/MAMP/htdocs/hocd9/modules/blocktabs/blocktabs.module(84): Drupal\blocktabs\Plugin\Tab\ViewsTab->getContent()
#2 /Applications/MAMP/htdocs/hocd9/core/lib/Drupal/Core/Theme/ThemeManager.php(287): template_preprocess_blocktabs(Array, 'blocktabs', Array)
#3 /Applications/MAMP/htdocs/hocd9/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render('blocktabs', Array)
#4 /Applications/MAMP/htdocs/hocd9/core/lib/Drupal/Core/Render/Renderer.php(444): Drupal\Core\Render\Renderer->doRender(Array)
#5 /Applications/MAMP/htdocs/hocd9/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, false)
#6 /Applications/MAMP/htdocs/hocd9/core/lib/Drupal/Core/Template/TwigExtension.php(450): Drupal\Core\Render\Renderer->render(Array)
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇰Pakistan isalmanhaider

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.71.5 2024