This topic has been brought up many times over the internet and no solution has worked for me, thus I'm here posting now.
<br><br>
So I have a hand full of issues with my Moodle, non of which I can figure out. First I want to point out I am a software developer, I specialize in front and back end development. I'm stating this in an attempt to convey that I'm not an idiot, I am knowledgeable with servers and programming.
<br><br>
I am using Moodle version 2.6.6 Build 20141110.
<br><br><br><br>
In an overall my theme does not load. Css and JS files are not loading, I get a lot of : "net::ERR_CONTENT_DECODING_FAILED" in my Google Chrome console. I also get anywhere between 1-3 "YUI is not defined" errors depending on the page I am on.<br>
<br><br>
So this is what I've tried/found out:<br>
*With `themedesignermode` DISABLED my css is completely broken. Website has no styling and is hard to navigate<br>
*With `themedesignermode` ENABLED I have css, the website *appears* to be good to go however most JS fails to load. <br>
-I pretty much can't navegate anywhere because moodle uses js to load all the a hrefs. However I can go into my <br>
browser and disable JS and then I'm able to navigate the site because the a hrefs populate via the html. This is<br>
where I am at and how I'm able to access the admin panels. Otherwise I can't even log into my site.<br>
*I've tried enabling/disabling `cachejs`<br>
*I've tried enabling/disabling `useexternalyui`<br>
*I've tried enabling/disabling `yuicomboloading`<br>
*I've tried enabling/disabling `slasharguments`<br>
*I've tried enabling/disabling `enabledevicedetection`<br>
*I've tried enabling/disabling `enableajax`<br>
*I am using theme clean, but I have tried standard as well as afterburner.<br>
*I've checked my httpd (apache) logs and nothing is useful inside there.<br>
*I have deleted my moodle data so that way moodle rebuilds it in an attempt to see if it's my moodle data is corrupt, no luck.
<br><br>
I have spent over 6 hours trying every single possible combination of settings listed above trying to find a perfect match, all coming up short. I purge all caches and theme caches between every test.<br><br>
Now this is where things get even better. I am on a local network running a virtual box that is running centos 6.6.<br>
We use github to centralize all our code. The moodle files I have, 3 other developers also have. Those 3 other developers do NOT have the same problem I have. In an attempt to confirm I don't have corrupt files I had one of the developers zip up all of their moodle files and I replaced my files with their files. Still no change what so ever. (works for them, doesn't work for me)<br><br>
The database populating moodle is ran on a centralized server. So all the developers are using the same database (therefore it can't be a database problem).<br><br>
The only other variable is the server running apache because each one of us developers are running our own instance of a virtual machine. HOWEVER we are all running the same clone of our virtual box so that takes away that variable.<br><br>
My files, database, moodledata, and virtual machine all match the other 3 developers however my css/js doesn't load whereas everyone else's does, explain that one?<br><br>
The company I work for has about 8 sites that use moodle, of those 8 there are about 3 that behave like this (for just me). The code when pushed to production works just fine as well as works just fine for the other 3 developer's local boxes. The problem relies on something I have that they don't, but I don't know what that is.<br><br>
Any suggestions?<br><br>
Here is a sample output of my console in chrome:<br>
Failed to load resource: net::ERR_CONTENT_DECODING_FAILED<br>
http://192.168.1.45/CONFIDENTIAL/moodle/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.css Failed to load resource: <br>net::ERR_CONTENT_DECODING_FAILED<br>
http://192.168.1.45/CONFIDENTIAL/moodle/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js Failed to load resource: <br>net::ERR_CONTENT_DECODING_FAILED<br>
javascript.php?rev=-1&jsfile=%2Flib%2Fjavascript-static.js:791 Uncaught ReferenceError: YUI is not defined<br>
javascript.php?theme=clean&rev=-1&type=footer:3 Uncaught ReferenceError: YUI is not defined<br>
192.168.1.45/:194 Uncaught ReferenceError: YUI is not defined<br>