We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE7: Issue with CP becoming unresponsive on some UI elements

How Do I?

B9 Company's avatar
B9 Company
2 posts
3 years ago
B9 Company's avatar B9 Company

On a fresh EE7 install, the CP may become unresponsive when you click on some UI elements (e.g. toggles, tabs). Using the browser development tools, I noticed that javascript resources served by the admin.php file do not load: you may see errors like “status: failed” or “net::ERR_HTTP2_PROTOCOL_ERROR 200”. If I replay the request with curl, I get the message:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed
25 556k   25  144k    0     0  18889      0  0:00:30  0:00:07  0:00:23  8084
curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)

The issue is that the Content-Length of the resource is computed before it is compressed, what is received is smaller than what is expected: from the client standpoint, the server closes the stream prematurely, hence the error.

I worked around this issue by adding the following line at the end of the .htaccess file that is located in the same folder as the admin.php file:

SetEnvIfNoCase REQUEST_URI ^/admin\.php no-gzip dont-vary

This disables compression for content served by admin.php.

After that, I no longer have the issue.

? 1
       
Andy McCormick's avatar
Andy McCormick
322 posts
3 years ago
Andy McCormick's avatar Andy McCormick

Thanks for reporting this. To my knowledge, we haven’t had any other reports of this, so it’s good to know if it comes up again. Regarding the gzip, just for our knowledge did you already have gzip disabled for your site? https://docs.expressionengine.com/latest/control-panel/settings/debug-output.html#enable-gzip-compression. I just want to make sure that you didn’t already have gzip disabled and still had this issue.

thanks

       
B9 Company's avatar
B9 Company
2 posts
3 years ago
B9 Company's avatar B9 Company

I think the issue is likely to happen with servers accepting to use h2 instead of http/1.1.

Gzip was disabled when I reported my issue, but I ran a test with Gzip enabled and the issue is still there. By the way, I thought the Enable Gzip compression feature applied to the website only (I mean, what the public sees), does it also apply to the control panel?

       
Yuri's avatar
Yuri
315 posts
2 years ago
Yuri's avatar Yuri

I tried to replicate this on Apache server using http/2 and gzip on fresh EE 7 install, and I could not.

I was using Chrome.

Might be specific to a certain browser or specific server configuration - would be happy to know the details

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.