No Code Attached Yet
avatar ptrouw
ptrouw
4 Nov 2021

Steps to reproduce the issue

Installed a new joomla installation, v4.0.4. /administrator didn't load any Template/CSS. With debug on it works as it should.

Expected result

Loading off CSS file

Actual result

Just text in administrator

System information (as much as possible)

PHP gebouwd op Linux 4.18.0-147.3.1.el7h.lve.1.x86_64 #1 SMP Wed Feb 12 07:03:11 EST 2020 x86_64
Databasetype mysql
Database versie 10.4.21-MariaDB
Database collatie latin1_swedish_ci
Collatie van de databaseverbinding utf8mb4_general_ci
Database verbinding versleuteling Geen
Databaseserver ondersteunt verbindingsversleuteling Nee
PHP versie 7.4.25
Webserver LiteSpeed
Webserver naar PHP interface litespeed
Joomla! versie Joomla! 4.0.4 Stable [ Furaha ] 24-October-2021 19:25 GMT
Gebruikersagent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.3

Additional comments

Apache log file last line:
80.xxx.xx.xx - - [04/Nov/2021:13:24:57 +0100] "GET /media/mod_menu/js/admin-menu.min.js?387324d09eeb2005b99ae05abb4a84fc HTTP/1.1" 200 0 "https://www.xxx.xx/administrator/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36"

Error log: no entries

avatar ptrouw ptrouw - open - 4 Nov 2021
avatar ptrouw ptrouw - change - 4 Nov 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Nov 2021
avatar dgrammatiko
dgrammatiko - comment - 4 Nov 2021

You're using Litespeed so you need to comment these lines in your htaccess:

joomla-cms/htaccess.txt

Lines 134 to 166 in 2e44061

## These directives are only enabled if the Apache mod_headers module is enabled.
## This section will check if a .gz file exists and if so will stream it
## directly or fallback to gzip any asset on the fly
## If your site starts to look strange after enabling this, and you see
## ERR_CONTENT_DECODING_FAILED in your browser console network tab,
## then your server is already gzipping css and js files and you don't need this
## block enabled in your .htaccess
<IfModule mod_headers.c>
# Serve gzip compressed CSS files if they exist
# and the client accepts gzip.
RewriteCond "%{HTTP:Accept-encoding}" "gzip"
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]
# Serve gzip compressed JS files if they exist
# and the client accepts gzip.
RewriteCond "%{HTTP:Accept-encoding}" "gzip"
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
# Serve correct content types, and prevent mod_deflate double gzip.
RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
<FilesMatch "(\.js\.gz|\.css\.gz)$">
# Serve correct encoding type.
Header append Content-Encoding gzip
# Force proxies to cache gzipped &
# non-gzipped css/js files separately.
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>

avatar ptrouw
ptrouw - comment - 4 Nov 2021

Thx a million. Works.

avatar ptrouw ptrouw - change - 4 Nov 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-11-04 14:34:05
Closed_By ptrouw
avatar ptrouw ptrouw - close - 4 Nov 2021

Add a Comment

Login with GitHub to post a comment