Closed (fixed)
Project:
CSSTidy
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2010 at 00:46 UTC
Updated:
26 Dec 2010 at 06:30 UTC
After enabling CSS Aggregation and CSSTidy one of the ctools css files now fails to load. If I disable CSS Aggregation or CSSTidy, everything works. When I navigate to where the ctools css file should be, it's there but has nothing in it. It is also named "0890393f586c5a6e28e86667db41a1ca_tidy.css?I". I think that the "?I" appended to the file name might be the problem.
Before <link ... href="/sites/default/files/ctools/css/0890393f586c5a6e28e86667db41a1ca.css?7" />
After <link ... href="/sites/default/files/ctools/css/0890393f586c5a6e28e86667db41a1ca_tidy.css?I" />
Comments
Comment #1
philbar commentedI've verified the problem. Hopefully I can figure out a solutions soon.
Comment #2
philbar commentedYou are right. It has to do with ctools adding ? and a random character to the end of css files.
We need to remove the ? and the random character when getting the
$aggregated_file_name. Below is the code we need to adjust. Any suggestions?In summary, right now
$aggregated_file_namewill output something like this:/ctools/css/dd40f13e1e57760f7ad8f2cf2eeef983.css?awe need it to be like this:
/ctools/css/dd40f13e1e57760f7ad8f2cf2eeef983.cssComment #3
philbar commentedComment #4
philbar commentedhttp://drupal.org/cvs?commit=463198
This will work, but ctools css wont be processed.