Trying to setup a CodeIgniter based project for local development (LAMP stack), and once all the config file were updated (meaning I successfully had meaningful bootstrap errors for CodeIgniter), I get this error in my browsers:
- Chrome
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
- Firefox
Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Just using wget to fetch the file works fine, no errors and I get the content I’m expecting. Not sure if this is something with CI and the Server, or just something weird with the project. Has anyone seen this before?
CodeIgniter seems to have its own method of gzipping its output (Why, I don’t know, but I’m not very familiar with CI.)
According to this forum entry, such an error can occur when PHP error messages screw up the compressed content. Adjusting error_reporting to
E_ALL ^ E_NOTICEdid the trick there.Update: There also seems to be a CI config setting: