0

My magento site unable to load the CSS because of wrong path. the Path is:

<link rel="stylesheet" type="text/css" href="C:\Program Files (x86)\Zend\Apache2\htdocs\myecommerce_comhttp://myecommerce.com/skin/frontend/default/theme183v2/css/reset.css" media="all" />

and the Correct path is

<link rel="stylesheet" type="text/css" href="C:\Program Files (x86)\Zend\Apache2\htdocs\myecommerce_com\skin\frontend\default\theme183v2\css\reset.css" media="all" />

I already change the value of my DB table core_config_data, cleared cache, etc..

Still not working.

6
  • Duplicate of stackoverflow.com/questions/25013561/magento-css-not-loading Commented Jul 29, 2014 at 14:27
  • Sorry. Still looking for solution.. Commented Jul 29, 2014 at 14:28
  • From both questions, you can't see the difference between a file path and a URL. The file path (the one you use in command line) to your Magento's ROOT FOLDER is C:\Program Files (x86)\Zend\Apache2\htdocs\myecommerce_com the URL for your Magento is http://myecommerce.com/. Commented Jul 29, 2014 at 14:33
  • Yes, but when I right click and view source, it came out wrong, it shows the wrong path: link rel="stylesheet" type="text/css" href="C:\Program Files (x86)\Zend\Apache2\htdocs\myecommerce_comhttp://myecommerce.com/skin/frontend/default/theme183v2/css/reset.css" media="all" / thats why my magento unable to load the css, because the path is incorrect Commented Jul 29, 2014 at 14:36
  • Can you take a look at: core_config_data ( base_url and skin_url - entry web/unsecure/base_skin_url ), .htaccess file, apache's config... Commented Jul 29, 2014 at 14:41

3 Answers 3

2

It's an old question, but mostly for my own documentation:

I've had this problem. There are some things to check:

  • Is the folder /media/ writable? This is where Magento stores the combined js and css files.
  • Is the folder /var/session and /var/cache writable? Caching needs to be stored somewhere.
  • Just to be sure: are the tables core_cache and core_cache_tag truncated?

Making /media/ writable solved the problem for me.

Sign up to request clarification or add additional context in comments.

1 Comment

I forgot to create media folder and set 777 to it
0

Try to go to the control centre

in the System menu, in fact i think this question has been asked before

well

System => Configuration => Web

The main point to watch out for is

i. Url options -> Add store code to Urls should be 'No'

ii. Unsecure -> Base Url should point to your own domain e.g http://mycommerce.com/

iii. Secure -> Base Url should point to your own domain e.g http://mycommerce.com/

also you should have

{{unsecure_base_url}}skin/

for your Base Skin

Comments

0

I had the same problem but found a different solution.

Are you using an Addon like GT Speed to combine or reduce your JS and CSS files? I uninstalled this plugin and the problem was solved for me. Hope this helps.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.