This website has broken after cache clearing: http://isaacgrainger.co.uk/
I've done the following as per other suggestions on here:
- checked folder permissions
- ran SQL script to turn merge CSS and JS off
- checked all permissions media and var folders
- checked base URLs- all fine
I am totally stumped. in the backend (unstyled) there seems to be no way to change CSS preferences. I didn't build this project so I don't know how the original developer configured the back end of Magento.
It's not a file system permissions issue or an incorrect secure/unsecure base URL. It's probably an incorrect Base Skin URL. Here's an example of your stylesheet link:
The problem is the href attribute.
/home/sites/isaacgrainger.co.uk/public_html/
looks more like a path in your file system than a web address.There are a lot of ways this could have happened, but the most likely and least painless would be if your
base_skin_url
was incorrect.If it is, you can fix it with this SQL query:
Or if you have admin access in the backend, you can change it there too:
System > Configuration > General > Web > {{Unsecure||Secure}}
Find the fields labeled "Base Skin Url" and change them to this:
(secure for secure, unsecure for unsecure)
My issue ended up being switching the mode of php delivery at the server; Fast CGI via Apache instead of Apache via Apache - viola, a normal admin loading all css at the SSL.
I have experienced same problem. Mine was not with the secure/unsecure path. It was because the permissions for the folders. I meant the ownership of the directories, when I changed the ownership to right user, all went smooth.
Check broken path
View the source of your page and click the CSS links, if it is pointed correctly it should bring you to the CSS page.
Solution
Need to go to phpMyAdmin and do this:
Then change values from 1 to 0 Clear cache and all will be ok
The problem is from your stylesheet reference call
This displays a valid js call from
But when I tried
it returns 404. So my suggestion is to try this, its from my own local Magento setup
This is for Unsecure Tab
The solution for me was to do with the base urls for secure and unsecure being incorrect for my install location as I was running magento without an actual domain name on port 80 (basically running it locally using host file changes in place of the usual DNS for a live domain).
My first step was to go into phpmyadmin and locate my magento database. Then find the core_config_data table and change the following fields:
Ensure that these urls match with the url for your magento install.
It was not possible for me to change these via the backend of Magento due to the jscript files having incorrect paths and therefore not loading to make the save button work in the backend.
Once you have changed these two fields you must be sure to clear the cache for Magento in order for your changes to take effect.
You can do this in two ways.
First Method:
Through the Magento Admin Panel (this may not work as in my case the buttons did not work on my back end due to the url issue for the js files)
Second Method:
run the following command to clear the cache
sudo rm -rf var/cache/*
Reload your page and the css and jscript should all be working