Broken advagg CSS link by added slash in URL

Created on 3 February 2020, almost 5 years ago
Updated 28 February 2023, over 1 year ago

I've been using the Advagg module for a while and it's been fine. This morning the website was showing with no CSS styling. The problem was the CSS file had an extra slash in the URL. So for example:

<link rel="stylesheet" href="//sites/default/files/advagg_css/css__X4DGyDjpvoGQZ70ppukn0iUEPqryWD4KXUKXgXZOymU__jCin5ell0SkWPuPWcnSjvz1kI7Q-2OcSEttrwtHOv2s__jkKQZdrLMs0WDeYIqQPn34cFZjbbHdw_2miLUlAHmsw.css" media="all">

There were two CSS files, it included all the core and custom CSS. Clearing the cache fixed the problem.

Can someone give me an idea what might have caused that?

🐛 Bug report
Status

Active

Version

2.33

Component

General CSS/JS

Created by

🇬🇧United Kingdom tce

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.

  • 🇮🇱Israel heyyo Jerusalem

    We are experiencing this same issue, but we have no idea what triggers it or what to do to fix it.
    Did you made any progress on it ?

  • 🇹🇹Trinidad and Tobago xamount

    I've seen this happen before on a production site. It was because the header size of the page was too big. (I'm not saying this is the issue specifically for you, but mentioning it here in case it might help)

    Is this problem happening on just specific pages or across the entire website?

    If yes to specific pages, are those pages very long?

    In our case, it was because we were using a View without pagination and the page was trying to generate hundreds of results. So paginating the view helped.

    You can check header size of a page by doing:

    curl -s -w \%{size_header} -o /dev/null https://your-domain.com/you-page

  • 🇨🇦Canada jodavidson

    I'm having similar issues, but it happens only for one user at a time with no warning on various pages. Clearing caches does nothing, I need to use the "Drastic Measures" option in the AdVAgg Operations panel to rebuild all the files to fix the issue.

Production build 0.71.5 2024