No Code Attached Yet
avatar mikajaxxx
mikajaxxx
28 Sep 2021

Steps to reproduce the issue

install joomla 4
log into administrator
admin panel is broken with some js errors in console.

the attachment is clearscreen shot 2021-09-28 at 22 46 18

Expected result

admin panel must working

Actual result

admin panel is broken

System information (as much as possible)

joomla 4.0.3
openlitespeed server
php 7.3 last update

Additional comments

After a few ctl+f5 suddenly it works but by repeating ctl+ f5 it will brokes again

avatar mikajaxxx mikajaxxx - open - 28 Sep 2021
avatar mikajaxxx mikajaxxx - change - 28 Sep 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 28 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Sep 2021
avatar brianteeman
brianteeman - comment - 28 Sep 2021

This is a server problem regarding pre-compressed content

avatar mikajaxxx
mikajaxxx - comment - 28 Sep 2021

Could you please tell me what we should to do ?
i am using directadmin + openlitespeed


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35697.

avatar mikajaxxx
mikajaxxx - comment - 28 Sep 2021

I am running joomla 3 , prestashop & wordpress on the same server with no problem


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35697.

avatar brianteeman
brianteeman - comment - 28 Sep 2021

Yes this is a change in Joomla 4. The change and explanation is made here #23385

joomla-cms/htaccess.txt

Lines 134 to 166 in 66df66d

## 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 mikajaxxx
mikajaxxx - comment - 28 Sep 2021

what we should do to solve this on openlitespeed?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35697.

avatar dgrammatiko
dgrammatiko - comment - 29 Sep 2021

@mikajaxxx could you try the solution from wp-media/wp-rocket#2767 and report back?

avatar chmst chmst - change - 29 Sep 2021
Priority Critical Medium
avatar mikajaxxx
mikajaxxx - comment - 29 Sep 2021

@dgrammatiko Ofcourse. but no improvement!
also i realized if i turn on debug, problem temporary solved but two js files related to debug widget not working! (screen shot attached)
I think gzip compression for admin panel must be removed right now! stability have much more priority than Speed! Speciallscreen shot 2021-09-29 at 15 52 33y for admin Area.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35697.

avatar dgrammatiko
dgrammatiko - comment - 29 Sep 2021

I think gzip compression for admin panel must be removed right now!

Gzip is by default disabled for PHP and for static assets unless you rename the htaccess.txt to .htaccess. The problem is not Gzip here, it's a misconfiguration of the server and there are 2 different solutions:

  • comment the part for pre gzipped files
  • fix your server to serve correctly the existing gzipped files
avatar mikajaxxx
mikajaxxx - comment - 29 Sep 2021

@dgrammatiko The serer is running on Openlitespeed ( fast & famous web services) also i have no problem with other cms including j3. teh only problem is j4 & my server support gzip very well.
could you please clearfy where i should comment pre gzipped files??? in which section of joomla and which lines?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35697.

avatar dgrammatiko
dgrammatiko - comment - 29 Sep 2021

Brian already shared the part of htaccess that controls the behaviour: #35697 (comment)

I'll say again that the problem is your server's settings. Apache, NGINX support pre gzipped static assets, and as far as I checked also Litespeed so your server is wrongly configured.

avatar jwaisner jwaisner - change - 1 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-01 05:34:01
Closed_By jwaisner
avatar joomla-cms-bot joomla-cms-bot - change - 1 Oct 2021
Closed_By jwaisner joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 1 Oct 2021
avatar joomla-cms-bot
joomla-cms-bot - comment - 1 Oct 2021

Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/35697

avatar jwaisner
jwaisner - comment - 1 Oct 2021

As this is not a bug but an issue with the server configuration I will close this report.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35697.

Add a Comment

Login with GitHub to post a comment