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.
On plain D8 install it looks like aggregated css stylesheets are not available.
After I switch the aggregation off all looks fine. Also with JS aggregation ON navigation is missing.
I set both to off for now, anyone having the same problem?
Comment | File | Size | Author |
---|---|---|---|
#2 | Aggregate CSS - OFF.png | 27.77 KB | stickplow |
Report.png | 54.85 KB | stickplow | |
Aggregate JS - ON.png | 20.8 KB | stickplow | |
Aggregate CSS - ON.png | 24.05 KB | stickplow |
Comments
Comment #2
stickplow CreditAttribution: stickplow commentedComment #3
nod_Does it also happens when the site is in english?
Comment #4
stickplow CreditAttribution: stickplow commentedJust added english set it to default cleared cache and yes still same effects
Comment #5
dcrocks CreditAttribution: dcrocks as a volunteer commentedAre you running as a virtual host? A personal web server on OS X? Can you see errors on your web server logs or on the browsers web console?
Comment #6
stickplow CreditAttribution: stickplow commentedWith Aggregate CSS ON when trying to open stylesheet I get
That happens with all 4 stylesheets
Also I tred to add logo and icon and they are not showing as well even with aggregation OFF
is returning same message as the stylesheets
With aggregation off the theme is back but the logo file is still showing the error.
I'm on shared hosting.
Comment #7
dcrocks CreditAttribution: dcrocks as a volunteer commentedLook at #2619250: Make .htaccess usage work for the widest possible configurations without relaxing security and document pitfalls and the discussion in #1269780: Remove symlinks option from .htaccess after it was committed to see if they offer any clues.
Comment #8
dcrocks CreditAttribution: dcrocks as a volunteer commentedTry to edit ../yourdrupal/sites/default/files/.htaccess. You should see something like
Delete '-Multiviews', save, and refresh your site. Hopefully that's it.
Comment #9
stickplow CreditAttribution: stickplow commentedNo luck with #8
Comment #10
serg2 CreditAttribution: serg2 commentedIt does sound like a server permission/configuration issue linked to the changes in .htaccess .
If installing D7 on the same configuration do you have to make any changes to the default .htaccess, such as replacing 'FollowSymLinks' with 'SymLinksIfOwnerMatch'?
Comment #11
stickplow CreditAttribution: stickplow commentedI have few D7 sites running perfectly on same server without any modification to .htaccess. The only diference with D8 install is that I have to force php version to 5.6 by pasting
in public_html/.htaccess
Comment #12
hejazee CreditAttribution: hejazee as a volunteer commentedI have the same problem with Apache/mod_lsapi
The solution is to edit sites/default/files/.htaccess
And remove -ExecCGI
like this:
Options -Indexes -Includes -MultiViews
the error goes away.
I think this may be a bug with Drupal.
Maybe Drupal should use some kind if directive and place -ExecCGI in it.
Set priority to major because site does not work properly after fresh install.
Comment #13
cilefen CreditAttribution: cilefen commented@hejazee What happens HTML of your pages? Are there no CSS files included in the head section?
Comment #14
hejazee CreditAttribution: hejazee as a volunteer commented@cilefen, No, The html output is normal
The only problem is that all files in sites/default/files folder produce a 500 Internal server error.
No matter whether its a text file (with .txt extension) or a css or js file
The problem is inside sites/default/files folder
Because when I remove "-ExecCGI" everything is fixed.
I think it's not related with Drupal's process. because no PHP process is involved when accessing sites/default/files/file.txt
You can reproduce my problem by installing CloudLinux with Directadmin and this config:
Apache: mod_lsapi
Nginx reverse proxy
Comment #15
desro CreditAttribution: desro as a volunteer commentedI had the same problem. After installing Drupal 8 on my host, the toolbar css wasn't showing up. The admin links were showing as a list and a lot of the options weren't available because files from /sites/default/files were returning a 500 error code; a lot of the theme wasn't displaying correctly.
I went to Administration > Configuration > Development > Performance and turned off Aggregate CSS files and Aggregate JavaScript files per @stickplow post, and the css and javascript started appearing. However, the home page is still logging a 500 error from the same directory for my site logo.
I have not yet changed the sites/default/files/.htaccess file to remove -MultiViews or -ExecCGI as suggested by comments #8 and #12 as I am not sure what removing either of those options does as of yet. From here I am referencing #2619250: Disabling -MultiViews in .htaccess can cause 500 errors about -MultiViews.
Edit
I was not having any luck after deleting the -ExecCGI option from the .htaccess file. However, I did comment out the Options line
#Options -Indexes -Includes -MultiViews
and suddenly the files were all accessible through Drupal. I was even able to turn the Aggregate CSS and JavaScript options back on in Administration > Configuration > Development > Performance.Comment #16
Wim LeersClarifying based on #12.
#15: Can you please confirm that you also use mod_lsapi? Or some other special Apache mods?
@all: Can you please check whether image styles work for you? If CSS/JS aggregates don't work, image styles likely also won't work. They use the same mechanism.
Comment #17
desro CreditAttribution: desro as a volunteer commented@WimLeers: My phpinfo() shows
Is that what you were looking for?
Comment #18
Wim LeersThat's PHP. We're talking about Apache modules.
Comment #19
youyoums CreditAttribution: youyoums commentedi have the same problem,my server is centos 7.2.1511,php 7.0.3,and directadmin 1.5
Comment #20
albertski CreditAttribution: albertski at Xeno Media, Inc. commentedI had the same issue. Somehow I had the config .htaccess file and README file insides sites/default (as well as sites/default/config). I may have done this accidentally. Once I removed the .htaccess in sites/default it fixed this problem for me.
Comment #21
bastl CreditAttribution: bastl as a volunteer commentedSame issue here, can fix it by removing -ExecCgi and -Includes from .htaccess Options line in default/files/.htaccess.
But I dont understand the other consequences. These things are there for a reason, I assume? Can anyone explain?
What is better: disabling aggregation in config, or tweaking htaccess with unknown consequences ?
Background: Im on a shared hosting service "1und1.de", I have created a testing-stage / multi-site environment yesterday and have played around with config-sync and sql-sync (from prod to testing). After that played around with the testing's configuration (theme, removed language-module).
Comment #22
auxiliaryjoel CreditAttribution: auxiliaryjoel commentedAny more info on this one, I can't Aggregate JS without my slideshow images disappearing and my mobile burger menus ceasing to open.
I've removed the line:
Options -Indexes -ExecCGI -Includes -MultiViews
from my sites/default/files htaccess
but that didn't change anything
I can fix it by not Aggregating my JS in Performance settings, but I do want to Aggregate my JS...?
Localhost (via MAMP on mac): works fine
cPanel shared server: Aggregate JS causes Slide images and Burger menu to stop working
Any help would be appreciated
Comment #23
cilefen CreditAttribution: cilefen commentedWhat are the browser console errors?
Comment #26
larowlanGiven this seems to be isolated to certain server setups, reclassifying this as a support request
If we can get steps to reproduce happy to move it back
Comment #27
hejazee CreditAttribution: hejazee as a volunteer commentedIf you are using Directadmin, the simplest solution is to enable CGI Access for your user account.
when `enable CGI Access` checkbox is checked, the ExecCGI flag in the .htaccess, will not trigger that errors.
Anyway, the ultimate solution is to check the webserver's logs to find the actual problem. most of these problems are caused by a misconfigured webserver.
Comment #28
cilefen CreditAttribution: cilefen commentedThere is no code to review.
Comment #31
cilefen CreditAttribution: cilefen commentedNo new information has been posted.
Comment #32
michiellucas CreditAttribution: michiellucas commentedhey,
default drupal css aggregation is trowing this error
CGI acccess is on ...
Removed htaccess from files folder
But still error
[Tue Dec 13 16:01:59.721915 2022] [lsapi:error] [pid 147647:tid 140526170867456] [client 2a02:1807:4700:f00:34ae:47a2:8ca1:7474:58814] ] Error on sending request(GET /nl HTTP/1.1); uri(/index.php) content-length(0): ReceiveAckHdr: nothing to read from backend (LVE ID 1081), check http://docs.cloudlinux.com/mod_lsapi_troubleshooting.html
Hosting party won't fix or look for it
Anyone idea?
Comment #33
HoangD CreditAttribution: HoangD as a volunteer commentedThe problem will be resolved by
replacing 'FollowSymLinks' with 'SymLinksIfOwnerMatch' in 2 files :
drupal_root/.htaccess
drupal_root/sites/default/files/advagg_js/.htaccess