Question

I am trying to install site offline which is currently online.

But admin panel coming without css and js.

Any help.

In chrome console I got this

Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://localhost/venky/admin/".
localhost/:7 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://localhost/venky/admin/".
(index):1Uncaught SyntaxError: Unexpected token <
(index):1Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):1 Uncaught SyntaxError: Unexpected token <
(index):45 Uncaught ReferenceError: varienForm is not defined(anonymous function) @ (index):45

I tried 'view page source'

I got code

When I click on css or js links they just reload the page.

In firefox I got this console

This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] localhost
The stylesheet https://localhost/venky/admin/ was not loaded because its MIME type, "text/html", is not "text/css".
Was it helpful?

Solution

Create an .htaccess file into your root folder (or update the existing one) with this line inside

AddType text/css css 

this will tell apache to send the right content-type header for .css file

Update

your are putting https in your url . But not configured ssl on localhost. remove s from your url . try like http:\\localhost\your_store_url

OTHER TIPS

First check the permission. if all oks then

Try this:

SELECT * FROM core_config_data WHERE path LIKE '%merge%';

You should get two results. Try setting them to 0 if they are enabled, and then remove your /var/ folder to clear cache.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top