Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello everyone..
I have a major problem: the boost module is great but SOMETIMES i find some pagers without any CSS or JS like the image below:
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedGive https://drupal.org/project/advagg/ a try
Comment #2
kardave CreditAttribution: kardave commentedPart of the description of module Advanced CSS/JS Aggregation:
"Reason why this is an all in one module is because of the 404 handling; yes that is correct, getting a 404 for a CSS or JS file is now almost impossible. This is good news for Varnish, Purge and Boost users."
- IMHO it is supposed to solve issues about missing CSS/JS files :)
Comment #3
aminebourkadi CreditAttribution: aminebourkadi commentedok i will test it and see
Comment #4
aminebourkadi CreditAttribution: aminebourkadi commentedSorry my friend but it still didn't work, and i'm still don't know why this happens because it's randomly !!
Is there any special configuration for Boost or Advanced CSS/JS Aggregation ?
I think that is an IE issue,or a cron one , i don't know but i tested for differnts cases but it still ambigue
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedWhen it happens can you copy the raw page HTML and add it here as an attachment?
Comment #6
aminebourkadi CreditAttribution: aminebourkadi commentedHere is the code source of one case:
Comment #7
aminebourkadi CreditAttribution: aminebourkadi commentedAnd here is another case:
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedHi
From what I see it appears that modifications to the site are responsible (combined with the SSL certificates) for the missing stylesheets and that boost cached the page as it was taken and was valid.
Comment #9
aminebourkadi CreditAttribution: aminebourkadi commentedThank you very much..
But how to solve the issue of SSL?or how to solve this issue for good?
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedPurchase a valid SSL certificate eventually when you have diagnosed that the bug is solely due to this.
Comment #11
aminebourkadi CreditAttribution: aminebourkadi commentedI don't think that every site using Boost may purchase a ssl certificate... finally i give up and i return back to the drupal core cache because it's annoying for me and for the visitors to find pages like that
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedThere seems to have been a translation error. Boost does not require a SSL certificate. Boost also does not generate CSS in version 7.x
What has happened is that you have provided pages where additional CSS is requested from an SSL address which has an invalid certificate. Whether boost is turned on or off, most browsers are going to throw an error because of this configuration which has nothing to do with boost at all.
The choices are therefore.
a) buy an SSL certificate for wherever the css is coming from
b) don't configure the server to send css through SSL
neither of which are boost issues.
Comment #13
aminebourkadi CreditAttribution: aminebourkadi commentedThank you for your answer, but i don't use any other module that will bring CSS from another provider except @font-your-face .
Is there any way to prevent the server to not send the css via ssl?
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is from the information that you have submitted, it looks like the css is stored in a files sites/default/files/advagg_css/ which suggested that your advagg module is misconfigured and using https. Boost never uses https by default and disables itself for security purposes. There is also no place within boost for placing https or changing content outputted to the browser.
Comment #15
aminebourkadi CreditAttribution: aminebourkadi commentedThe poblem existed before the installation of advagg_css and after installing it the frequency of the issue has diminued !!
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedUnfortunately with the installation of adv_agg and the code you have provided, many of your visitors will now be asked about an invalid security certificate. If they are sensible and refuse then there will be no css on your site.
If the original bug exists then the way to debug it is to not have adv_agg and to check if the files that the html is referencing exist, or whether drupal's core cache has cleaned out css on a cron job because of modifications being made to the site. If the css files did not exist then a cache flush would have been sufficient to solve the problem. There is still nothing pointing to a boost error, it's either a drupal core cache issue, a cron misconfiguration or a mismatch between the length of time drupal core is storing the css cache compared to boost.
Comment #17
sketman CreditAttribution: sketman commentedSorry for reopening this, but I encountered a similar behavior. The difference in my case is, that the CSS files are not being generated only ocassionally and for the Frontpage only. At least, I did not encounter this problem for other pages.
So it works well at first, and then the page gets broken. After I manually delete files from "cache/normal" directory, everything works again for some time. The time it works fine is not equal, it can be 10 minutes or an hour, when it gets broken again.
I am using the 1.0 version of this module, because I had this issue with .htaccess file: can't save node's or settings.
I am also using Expire module, HTTPRL module and ADVAGG module.
The source code of problematic page is eventually atached.
Thanks in advance for eventual opinion or advices...
Comment #18
sketman CreditAttribution: sketman commented