Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling gzip throws an error #756

Open
blizam opened this issue Sep 1, 2016 · 7 comments
Open

Enabling gzip throws an error #756

blizam opened this issue Sep 1, 2016 · 7 comments

Comments

@blizam
Copy link

blizam commented Sep 1, 2016

Grav 1.1.3, Admin 1.1.4

With Caching enabled when I enable gzip I get this error

Server Error
Sorry, something went terribly wrong!

E_WARNING - Cannot modify header information - headers already sent by (output started at /[root]/public_html/system/src/Grav/Common/Grav.php:341)
For further details please review your logs/ folder, or enable displaying of errors in your system configuration.

Logs:

2016-08-31 15:42:19] grav.CRITICAL: Cannot modify header information - headers already sent by (output started at /[root]/public_html/system/src/Grav/Common/Grav.php:341) - Trace: #0 [internal function]: Whoops\Run->handleError(2, 'Cannot modify h...', '/[root]/p...', 351, Array) #1 /[root]/public_html/system/src/Grav/Common/Grav.php(351): header('Content-Length:...') #2 [internal function]: Grav\Common\Grav->shutdown() #3 {main} [] []

The change persists/is successful

2016-09-01_9-19-26

@blizam
Copy link
Author

blizam commented Sep 1, 2016

I tested on 2 seperate sites/servers... one running PHP 7 the other running PHP 5.6, same error

@rhukster
Copy link
Member

rhukster commented Sep 1, 2016

I'm not able to replicate this. I'm running Gzip fine on my mac and on the ubuntu-based getgrav.org server. What is your server setup?

@blizam
Copy link
Author

blizam commented Sep 1, 2016

CentOS, Apache, suPHP

Gzip is running fine, the error is just associated with enabling it (which does work) from the Admin plugin

@rhukster
Copy link
Member

rhukster commented Sep 1, 2016

ah! yes, i never changed it from admin.. will look into this.

@rhukster rhukster added the bug label Sep 1, 2016
@flaviocopes
Copy link
Contributor

Uhm, replicated too

@kamauwanjoroge
Copy link

Replicated the same issue on LiteSpeed server with the latest version of PHP. The error renders the whole admin unusable.

@mahagr
Copy link
Member

mahagr commented Jan 7, 2021

@askel45 Can you output the whole error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants