Try the Demo

Magento Forum

   
No CSS/JS After upgrade
 
maxcapture
Jr. Member
 
Total Posts:  6
Joined:  2012-10-28
 

Hello

After upgrading from 1.6 to 1.7.0.2, there is no css or javascript anywhere on the store or admin area - except the admin login screen.

Now when I say no css/js, I do not mean the paths or urls are incorrect, and this is unlikely to be a css/js merging issue (as it was never enabled, and I’ve tried both ways). No, I mean they are literally not included in the HTML.

Observe the top of the HTML source of a typical admin page which should have many css/js link and script tags;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<
head>
    </
head>

<
body id="html-body" class=" adminhtml-system-config-edit">
<
div class="wrapper">
        <
noscript>
        <
div class="noscript">
            <
div class="noscript-inner">
                <
p><strong>JavaScript seems to be disabled in your browser.</strong></p>
                <
p>You must have JavaScript enabled in your browser to utilize the functionality of this website.</p>
            </
div>
        </
div>
    </
noscript>
        <
div class="header">
            <
div class="header-top">
Etc

Javascript is in fact enabled, and I have tried this on multiple browsers.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
mageupdate
Sr. Member
 
Avatar
Total Posts:  217
Joined:  2011-10-31
Pasadena, CA
 

This is probably unrelated, but it seems curious that the source example you posted is showing that Javascript is disabled.  Maybe post the source from your home page or something.

Well, I haven’t seen this before on a 1.6 => 1.7, but it’s got to be that a layout directive for css/js got borked.  Checkout this module for debugging:
https://github.com/madalinoprea/magneto-debug

It will show you which layout directives are being loaded for any given page.

 Signature 

Magento Facebook Friend-Gated Promotions - @kalenjordan

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top