1

I am migrating my server from the dev to live, on the live server when I go to the admin section I am getting 404s for the css.

For example instead of trying to load the css from

/skin/adminhtml/default/default/reset.css

it is trying to load from here:

/skin/adminhtml/base/default/reset.css

What could cause this?

  • put reset.css to /skin/adminhtml/default/default/ – Amit Bera Jun 4 '14 at 4:16
  • where you have specified your css? – MeenakshiSundaram R Jun 4 '14 at 4:46
4

The backend has the same fallback mechanism as the frontend regarding the themes.
The last fallback level is always base/default for both of them.

The reason you reach that level for admin is: you don't have the file you requested in default/default OR the file is not readable.

I would put my money on "door number 2". Check the permissions on your files and folders.

1

To change the path for the admin skin, I think you want this in your config:

<config>
    <stores>
        <admin>
            <design>
                <theme>
                    <default>yourdesignthemename</default>
                </theme>
            </design>
        </admin>
    </stores>
</config>

That will allow you to use the path default/yourdesignthemename and will fall back to default/default if files are missing (CE 1.8.1)

0

If you try to get /skin/adminhtml/default/default/ path then you can use Mage::getDesign()->getSkinUrl(); or Mage::getDesign()->getSkinUrl('reset.css');

Then you can get skin/adminhtml/default/default/reset.css You can try to test it on your controllers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.