Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why is that the assetcompress cannot display the compressed css correctly? #253

Closed
simkimsia opened this issue Apr 6, 2015 · 9 comments
Closed
Assignees
Labels
Milestone

Comments

@simkimsia
Copy link

This is what gets displayed when I echo the assetcompress.

$this->AssetCompress->css('public-index.css', array('block' => 'layoutCss'));

http://example.com/cache_css/public-index.css?theme=V2Beta

Inside the response, I get Warning (2): file_get_contents(/var/virtual/example.com/current/src/storyzer/tmp/cache/asset_compress/public-index.css): failed to open stream: No such file or directory

My compressed files are actually like

webroot/cache_css/V2Beta-public-index.v1400332156

This is my asset_compress.ini

; Create the CSS extension
[css]
theme = true
timestamp = true
paths[] = WEBROOT/css/*
cachePath = WEBROOT/cache_css

[public-index.css]
theme = true
files[] = theme:css/common/no-banner-styles.css
files[] = theme:css/common/common.css
files[] = theme:css/common/form.css
files[] = theme:css/common/banner.css

Now using AssetCompress v0.17 because still using cakephp 2.x

@markstory markstory modified the milestones: 3.0, 0.18 Apr 6, 2015
@markstory
Copy link
Owner

Sounds like there is an issue with the development cache and theme files. I can look into that.

@markstory markstory self-assigned this Apr 6, 2015
@simkimsia
Copy link
Author

Thank you, markstory. I am still using Cake2, so will the fix work for that?

@markstory
Copy link
Owner

I can make it work 💃

@simkimsia
Copy link
Author

Thank you, markstory :)

@simkimsia
Copy link
Author

Thank you. It is working again. Cheers!~

@markstory
Copy link
Owner

Awesome, thanks for reporting the issue 😄

@simkimsia
Copy link
Author

Should I write a unit test for this? and if so, can give me a few clues as to how to get started?

@markstory
Copy link
Owner

I added tests in 5b0b338

@simkimsia
Copy link
Author

Okay. Cheers. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants