#1945 - Pre-compressed CSS/JS isn't working.
| Identifier | #1945 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Pre-compressed CSS/JS isn't working. |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | Possible bug/typo in sources\css_and_js.php in compress_cms_stub_file() function at line 200:
$myfile = @fopen($stub_file . '.gz', GOOGLE_APPENGINE ? 'wb' : 'at'); I tried using the recommended.htaccess file to take advantage of the pre-compressed CSS and JS, but the .gz files generated in templates_cached were corrupted. I couldn't find any reference for fopen mode 'at'. I suspected the 'at' might have been meant to be 'a+' and made the change. Changing 'at' to 'a+' and clearing the template cache gave me good .gz files. Just in case it's an environmental issue with my setup, I'm running Windows 7 Ultimate OS with XAMPP (Apache v2.4.12, mySQL v5.6.24, and PHP v5.6.8). |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments