ccampbell / sonic

fast, lightweight PHP 5.3 MVC framework
http://www.sonicframework.com
Apache License 2.0
63 stars 11 forks source link

Cannot make Sonic work correctly when served via HTTPS #34

Open gordyr opened 11 years ago

gordyr commented 11 years ago

I have just installed my domains SSL certificate and when accessing my app via https:// Sonic turbo appears not to be working, i.e. I get nothing rendered.

From inspecting the html it appears as though the Sonic.turbo scripts are not getting added to the html.

Strangely it works perfectly in Chrome, but in Firefox or IE... Nothing.

If I add ?noturbo=1 then everything renders as it should.

Having checked my apache error log I can see the following

[09-Jun-2013 08:11:30 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/songbanc/libs/Sonic/Core.php on line 18

I'm really at a loss to explain why this is happening. Any insight you have would be greatly appreciated.

EDIT: turning of off zlib output compression in my php.ini file resolves the issue. Any idea how to get this to work with sonic/https?

Cheers