View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1945 | Composr alpha bug reports | General / Uncategorised | public | 2015-06-01 23:07 | 2015-06-09 14:42 |
Reporter | Jason Verhagen | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 1945: Pre-compressed CSS/JS isn't working. | ||||
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). | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Sponsorship open | |||||
|
I found the PHP reference for the 't' (text translation) part of the 'at' fopen mode. The 'at' should be 'ab' for the binary .gz file. |
|
I committed a change to sources\css_and_js.php to change the 'at' fopen mode to 'ab'. If that is correct, this ticket can be closed :) |
|
Thanks Jason :) |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-02-26 18:29 | Chris Graham | Category | General => General / Uncategorised |