‘Content Encoding Error’ In Firefox When Using MVC Framework

November 29th, 2012 - Posted by Steve Marks to MySQL, PHP, Software, Web Development.

The problem I’m about to explain had me stumped, good and proper. There I am, working away happily on a basic PHP MVC framework, when BHAM! Life comes to a standstill and I spend the next hour or so trying to debug why I’m getting a ‘Content Encoding Error’ appear in Firefox.

Firefox Content Encoding Error

The Solution

After commenting out a bit of code at a time until the error disappeared, it turns out that the error showed when I had output prior to the templates/views in the MVC framework being loaded. By output I mean an error and/or echoing debug information. Any content output to the screen prior to the views being loaded caused this error so show.

Tags: ,
This entry was posted on Thursday, November 29th, 2012 at 7:57 pm by +Steve Marks and is filed under MySQL, PHP, Software, Web Development. You can follow any responses to this entry through the RSS 2.0 feed.

Fear not, we won't publish this

Comments (0)

No comments have been left yet. Be the first