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

CleanCache causes incorrect paths to CSS/JS files #4

Open
kohenkatz opened this issue Dec 3, 2014 · 3 comments
Open

CleanCache causes incorrect paths to CSS/JS files #4

kohenkatz opened this issue Dec 3, 2014 · 3 comments

Comments

@kohenkatz
Copy link

After running php cleanCache.php all, none of the CSS or JavaScript files on my Magento site were loading, both on the site itself and in the admin site.

Looking at the generated source code, I saw that the links looked something like this:

/var/www/skin/frontend/default/mystuff/css/bootstrap.css

They should properly look like this:

http://example.com/skin/frontend/default/mystuff/css/bootstrap.css

Following this StackOverflow answer got the site working again - just changing the two *merge* options and clearing the cache again did the trick.

Any idea why this happens? The original script had a comment describing the same issue, where it is suggested that there is a permissions problem. However, that is certainly not the case on my machine where all commands are run by the same user that owns the files (and the webserver runs as that same user too).

What else could be going on here?

@sayfulloev
Copy link

Just used this script and confirm that this bug still exist.

@sayfulloev
Copy link

2015-04-16 12-39-51 screenshot

This is how console reports all missing js and css and how backend looks like

@snez
Copy link

snez commented Dec 5, 2017

+1 and not a permissions problem

Also cleanDataCache wouldn't work so I swapped that with Mage::app()->getCacheInstance()->flush();

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

No branches or pull requests

3 participants