- Issue created by @adrianm6254
- First commit to issue fork.
- πΊπΈUnited States adrianm6254
I applied MR !41 and the error is gone.
Thanks!
- Status changed to RTBC
5 months ago 12:00am 21 June 2024 - π΅πΉPortugal jcnventura
This fixed the theme for me in Drupal core 10.3.0. Please commit.
- π¨π¦Canada dadderley Vancouver
Just upgrades a small site to drupal 10.3.0
I am using Bootstrap 8.x-3.30 as a base theme.The result is WSOD
34184 20/Jun 22:04 php Error TypeError: Drupal\Core\Theme\Registry::__construct(): Argument #9 ($kernel) must be of type ?Symfony\Component\HttpKernel\HttpKernelInterface, string given, called in /home/customer/www/da
Is there a new release coming?
- π§πΎBelarus f1mishutka Minsk
With release of 10.3.0 this issue became critical show stopper. Could we have it released ASAP please?
Thanks!
- π¬π§United Kingdom Biren
I experience the same with Drupal 10.3.0. The new release is needed immediately.
- π¦πΉAustria drupalfan2
Because we do not get the new release, I generated this patch file.
- π·πΊRussia pick_d
Had the same issue with 10.3.0 Drupal core release.
However, the patch from #10 fixed it for me. Thanks. - First commit to issue fork.
-
shelane β
committed f47794c3 on 8.x-3.x authored by
hosterholz β
Issue #3452819 by hosterholz, Adrianm6254: Argument #9 ($kernel) must be...
-
shelane β
committed f47794c3 on 8.x-3.x authored by
hosterholz β
- π¨π¦Canada dadderley Vancouver
Well, that was quick!
Installed the new dev release
public_html$ composer require 'drupal/bootstrap:3.x-dev@dev' ./composer.json has been updated Running composer update drupal/bootstrap Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 1 update, 0 removals - Upgrading drupal/bootstrap (3.30.0 => dev-3.x f47794c) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 1 update, 0 removals - Syncing drupal/bootstrap (dev-3.x f47794c) into cache - Removing drupal/bootstrap (3.30.0) - Installing drupal/bootstrap (dev-3.x f47794c): Cloning f47794c3f8 from cache Generating autoload files Hardening vendor directory with .htaccess and web.config files. 51 packages you are using are looking for funding. Use the `composer fund` command to find out more! Cleaning installed packages. No security vulnerability advisories found
Proceeded to update to Drupal 10.3.0
All is well.Thankyou
- Status changed to Fixed
5 months ago 5:53pm 21 June 2024 - πΊπΈUnited States shelane
Full release coming soon. I'm checking other issues to see if there is anything else that should go in the release.
- πΊπΈUnited States Chris Matthews
Thank you all for the quick turnaround. I rolled back to 10.2.7 for now.
Automatically closed - issue fixed for 2 weeks with no activity.
I was getting the "Argument #9 ($kernel) must be of type" error after updating to Drupal 10.3.1, and it was resolved after updating Bootstrap to 3.31, except now the update.php page does not load. The database did update with Drush but the update.php page does not load even after clearing and rebuilding caches. All other admin and site pages I have checked seem to work.
The log now shows "Argument #2 must be of type array . . ."
Here is the full output:
TypeError: array_diff(): Argument #2 must be of type array, null given in /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/Registry.php on line 702
#0 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/Registry.php(702): array_diff(Array, NULL)
#1 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/Registry.php(677): Drupal\Core\Theme\Registry->mergePreprocessFunctions('block__system_m...', 'block', Array, Array)
#2 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/Registry.php(791): Drupal\Core\Theme\Registry->completeSuggestion('block__system_m...', Array)
#3 /mnt/www/html/web/docroot/themes/contrib/bootstrap/src/Plugin/Alter/ThemeRegistry.php(161): Drupal\Core\Theme\Registry->postProcessExtension(Array, Object(Drupal\Core\Theme\ActiveTheme))
#4 /mnt/www/html/web/docroot/themes/contrib/bootstrap/src/Bootstrap.php(303): Drupal\bootstrap\Plugin\Alter\ThemeRegistry->alter(Array, NULL, NULL)
#5 /mnt/www/html/web/docroot/themes/contrib/bootstrap/bootstrap.theme(139): Drupal\bootstrap\Bootstrap::alter('bootstrap_theme...', Array, NULL, NULL)
#6 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(458): bootstrap_theme_registry_alter(Array, NULL, NULL)
#7 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/Registry.php(433): Drupal\Core\Theme\ThemeManager->alterForTheme(Object(Drupal\Core\Theme\ActiveTheme), 'theme_registry', Array)
#8 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/Registry.php(274): Drupal\Core\Theme\Registry->build()
#9 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Utility/ThemeRegistry.php(88): Drupal\Core\Theme\Registry->get()
#10 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Utility/ThemeRegistry.php(69): Drupal\Core\Utility\ThemeRegistry->initializeRegistry()
#11 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/Registry.php(319): Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:...', Object(Drupal\Core\Update\UpdateBackend), Object(Drupal\Core\ProxyClass\Lock\DatabaseLockBackend), Array, true)
#12 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(141): Drupal\Core\Theme\Registry->getRuntime()
#13 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render('html', Array)
#14 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, true)
#15 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Render/Renderer.php(153): Drupal\Core\Render\Renderer->render(Array, true)
#16 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#17 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Render/Renderer.php(154): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#18 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php(66): Drupal\Core\Render\Renderer->renderRoot(Array)
#19 /mnt/www/html/web/docroot/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php(76): Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...', Array)
#20 /mnt/www/html/web/docroot/core/modules/system/src/Controller/DbUpdateController.php(205): Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...', Array)
#21 [internal function]: Drupal\system\Controller\DbUpdateController->handle('info', Object(Symfony\Component\HttpFoundation\Request))
#22 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Update/UpdateKernel.php(115): call_user_func_array(Array, Array)
#23 /mnt/www/html/web/docroot/core/lib/Drupal/Core/Update/UpdateKernel.php(76): Drupal\Core\Update\UpdateKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request))
#24 /mnt/www/html/web/docroot/update.php(27): Drupal\Core\Update\UpdateKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#25 {main}
- π³πΏNew Zealand derekthatcher Christchurch
I have the same issue as #19. Managed to get update script to run by removing block--system-menu-block--main.html.twig and block--system-menu-block--account.html.twig files.
- π¬π§United Kingdom vijaycs85 London, UK
Facing this issue. I assume the fix is available from version >=3.31.
- πΊπΈUnited States MagdalenaA67
Updating bootstrap worked for me after updating core to 10.3.
- "drupal/bootstrap": "^3.29",
+ "drupal/bootstrap": "^3.32",