Style lost when using "aggregate and compress css files".

Created on 8 November 2011, over 12 years ago
Updated 27 July 2023, 11 months ago

I have built a custom theme using zen.
For my image galleries, I have code in the "fields.css" file for my theme, to float my images left.
It works fine as long as aggregate and compress css files is turned off.

As soon as I turn this on, the css no longer is showing in firebug, and my css is not applied any longer, and my images are no longer floated left.

This seems to be a bug, please advise, as I would like to use this feature.

🐛 Bug report
Status

Fixed

Version

10.0

Component
Cache 

Last updated about 8 hours ago

Created by

🇺🇸United States acetrebo

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.

  • 🇮🇳India mohitgupta.ald Gurugram, Haryana

    Enabling css aggregation is also breaking the site. This is happening just after the deployment and sometimes at random to the front end as well as on the admin login. Below are the details for the drupal site -
    1: Site is hosted on the azure with docker container.
    2: The images and other files are saved on the azure blob container
    3: Parent theme is bootstrap and we have used a custom child theme based on it.

    Have tried below points but not succeeded -

    1: giving 0777 to /tmp folder location.
    2: checked the .htaccess file and have added all the points mentioned in above threads.
    3: commented all the external font urls which was called in the main style file.
    4: resolved all the css related bugs which was identified via the advance aggregation module in validation section.

    Can anyone provide some more inputs/ways to resolve this issue.

    Thanks in advance :)

  • 🇬🇧United Kingdom 2dareis2do

    What version of drupal? Which web server?

  • 🇮🇳India mohitgupta.ald Gurugram, Haryana

    Reply on #73: The drupal version is 9.5.9 and the server which is configured is Apache2 on Linux machine via the docker and Azure portal. Thanks for sharing issue links but these are not related to my issue.

  • 🇬🇧United Kingdom 2dareis2do

    Ok, I would consider posting a new ticket as this one is for Drupal 10.x afaict

    Also aggregated files are usually stored in public storage. Maybe check the permissions there as well.

    Drupal has the following types of file storage:

    tmp
    public
    private

Production build 0.69.0 2024