Wrong path of required.svg in webform.css

Created on 15 August 2022, almost 2 years ago
Updated 1 October 2023, 9 months ago

I noticed that a website I work on tried to load themes/contrib/themes/contrib/bootstrap_barrio/images/required.svg, but failed. I was able to locate the CSS statement that caused the issue in the file css/components/webform.css.

The attached patch fixes the issue.

Best regards
Lukas

πŸ› Bug report
Status

Fixed

Version

5.5

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany lukas_w

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.

  • Status changed to Fixed over 1 year ago
  • Status changed to Fixed about 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom Londova

    I still have this error message after installing the last version 5.5.12

  • πŸ‡¨πŸ‡·Costa Rica MaxMendez

    This problem persist on 5.5.12 and 5.5.x-dev.

    Seems to be only in the compile files.

  • πŸ‡¬πŸ‡§United Kingdom 2dareis2do

    If creating sub theme using bootstrap_sass, it is likely that the image path should be relative to the css file that is referencing it. This should likely be as follows:

    $barrio_path_images: "../images/";
    

    https://www.drupal.org/project/bootstrap_sass/issues/3384850#comment-152... πŸ› barrio_path_images required to be configured when creating a subtheme Needs review

    Other wise you will get 404 errors e.g.

    2023-09-01 15:19:51	Error	xx.xx.xx.xx	404	GET /themes/custom/contrib/bootstrap_barrio/images/icons/text-plain.png HTTP/1.0	https://mywebsite/article/getting-started-ddev-and-apache-solr-service-addon	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36	919	Apache SSL/TLS access
    2023-09-01 15:19:51	Error	xx.xx.xx.xx	404	GET /themes/custom/contrib/bootstrap_barrio/images/icons/text-html.png HTTP/1.0	https://mywebsite/article/getting-started-ddev-and-apache-solr-service-addon	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36	918	Apache SSL/TLS access
    2023-09-01 15:19:51	Error	xx.xx.xx.xx	404	GET /themes/custom/contrib/bootstrap_barrio/images/required.svg HTTP/1.0	https://mywebsite/article/getting-started-ddev-and-apache-solr-service-addon	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36	35.1 K	Apache SSL/TLS access
    2023-09-01 15:19:51	Error	xx.xx.xx.xx	404	GET /themes/custom/contrib/bootstrap_barrio/images/icons/text-x-generic.png HTTP/1.0
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Getting these errors as well:

    /themes/contrib/bootstrap_barrio/required.svg 404 (Not Found)
    

    Looking at the CSS used in the page source, it's using:

    background-image:url(/themes/contrib/bootstrap_barrio/required.svg);
    

    But, this issue can't be reopened other than by the maintainers so we need a new issue.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Note that the latest dev version is working as expected so you can use that until a new release is available.

Production build 0.69.0 2024