V 2.0.1 not working with drupal 9.5.0

Created on 3 January 2023, almost 2 years ago
Updated 23 June 2023, over 1 year ago

Problem/Motivation

after upgrading from background-image V 2.0.0 to v 2.0.1, background images are no longer shown and an error appears in the log.

Steps to reproduce

    install module background-image v 2.0.0 on drupal 9.5.0
    define a page with background image
    --> background image is shown
    upgrade to background image v 2.0.1
    --> background image is gone
    error is thrown in the logfile:
TypeError: Drupal\background_image\Controller\BackgroundImageCssController::__construct(): Argument #7 ($cache) must be of type Drupal\Core\Cache\Cache, Drupal\Core\Cache\CacheFactory given, called in /bitnami/drupal/modules/background_image/src/Controller/BackgroundImageCssController.php on line 155 in Drupal\background_image\Controller\BackgroundImageCssController->__construct() (Zeile 125 in /bitnami/drupal/modules/background_image/src/Controller/BackgroundImageCssController.php)

#0 /bitnami/drupal/modules/background_image/src/Controller/BackgroundImageCssController.php(155): Drupal\background_image\Controller\BackgroundImageCssController->__construct()
#1 /opt/bitnami/drupal/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(28): Drupal\background_image\Controller\BackgroundImageCssController::create()
#2 /opt/bitnami/drupal/core/lib/Drupal/Core/Controller/ControllerResolver.php(117): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition()
#3 /opt/bitnami/drupal/core/lib/Drupal/Core/Controller/ControllerResolver.php(69): Drupal\Core\Controller\ControllerResolver->createController()
#4 /opt/bitnami/drupal/core/lib/Drupal/Core/Controller/ControllerResolver.php(85): Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition()
#5 /opt/bitnami/drupal/vendor/symfony/http-kernel/HttpKernel.php(152): Drupal\Core\Controller\ControllerResolver->getController()
#6 /opt/bitnami/drupal/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#7 /opt/bitnami/drupal/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#8 /opt/bitnami/drupal/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#9 /opt/bitnami/drupal/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#10 /opt/bitnami/drupal/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#11 /opt/bitnami/drupal/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#12 /opt/bitnami/drupal/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#13 /opt/bitnami/drupal/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#14 /opt/bitnami/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#15 /opt/bitnami/drupal/core/lib/Drupal/Core/DrupalKernel.php(707): Stack\StackedHttpKernel->handle()
#16 /opt/bitnami/drupal/index.php(19): Drupal\Core\DrupalKernel->handle()
#17 {main}

Proposed resolution

fix error displayed in the logfile

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany dpauli

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