Background Image Not Working

Created on 20 February 2023, almost 2 years ago
Updated 7 November 2023, about 1 year ago

Am still having this issue, not showing the background image, have been trying for weeks to no avail.

i have tried multiple themes, bootstrap, drupal standard and minimal lite theme and none work.

Followed the tutorial about 10 times and can't get it to work.

get this error in the logs:

ypeError: Argument 4 passed to Drupal\background_image\Controller\BackgroundImageCssController::deliver() must be an instance of Drupal\Core\Language\Language, string given in Drupal\background_image\Controller\BackgroundImageCssController->deliver() (line 376 of /home/feafccef/public_html/live/website.com/modules/background_image/src/Controller/BackgroundImageCssController.php)

#0 [internal function]: Drupal\background_image\Controller\BackgroundImageCssController->deliver(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\background_image\Entity\BackgroundImage), 'public', 'en', '8f2gAOhn3CSM-tP...')

I've had it working in the past on another website and am a developer so know my way around and can get it to work.

But this module is just not working at the moment and needs to be fixed before being a stable release.

and from the issue logs there are many others having the same issue.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom effortDee

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

Comments & Activities

  • Issue created by @effortDee
  • First commit to issue fork.
  • 🇫🇷France Soubi

    Sorry for the two branch on the fork, I messed up on my PC ("3343182-background-image-not" is the right one).

    I don't have the error you reported on the 2.0.x-dev, the cache problem seems to be corrected. But the background didn't appeared.

    After inverstigation, the page.background_image is always empty in the page.html.twig, I added an implementation of hook_preprocess_page, and now I see my background on the front.

  • @soubi opened merge request.
  • Status changed to Fixed about 1 year ago
  • 🇦🇺Australia nigelcunningham Geelong

    Apologies for the slow reply.

    This should be fixed in the dev branch now; I'm planning on doing a new release too shortly.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024