• Hello,

    After upgrading to 2.6 (from 2.5.1), the path to my admin css files is now messed up as the admin area no longer contains any css formatting.

    After some searching I found the following recommendation.

    In wp-login.php change the following:

    wp_admin_css( ‘login’, true );
    to
    wp_admin_css( ‘css/login’, true );

    This restored css to the login page, however the css is still missing for the pages once logged in.

    I’ve so far modified any other calls to wp_admin_css by adding the css path as above, but so far I’ve not been able to narrow it down.

    Any ideas?

    Thanks in advance, Brad

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter 32bitwonder

    (@32bitwonder)

    btw, I have confirmed that this is not a browser cache issue, and both IE and Firefox are equally affected. It’s clear this is a server side pathing issue…

    I am experience the same thing after just having upgraded from 2.5.1 to 2.6. The site looks fine and the admin seems to function fine, but the Admin section has lost ALL CSS formatting. Confirmed that it is broken in Firefox 3 and Safari. I tried clearing the browser cache and cookies, but that did nothing.

    I can’t find any info on this anywhere yet besides this thread. Fixes anyone?

    Same happened to me. I tried re-uploading wp-admin and wp-includes folders to FTP overwriting everything, but the problem persists.

    I also noticed in the page source of the login page of my blog, that the “<link rel” tags indicate a css file suffixed with an URL paramter “ver=2.6”

    that is

    <link rel=’stylesheet’ href=’https://go-blog.ozar.net/wp-admin/css/global.css?ver=2.6′ type=’text/css’ media=’all’ />

    Would that mean anything?

    The suffix is meant to be there.

    On the login page the css bit should roughly resemble

    <style type="text/css">* html { overflow-x: hidden; }</style>
    <link rel='stylesheet' href='https://www.example.com/wp-admin/css/global.css?ver=2.6' type='text/css' media='all' />
    <link rel='stylesheet' href='https://www.example.com/wp-admin/wp-admin.css?ver=2.6' type='text/css' media='all' />
    <link rel='stylesheet' href='https://www.example.com/wp-admin/css/colors-fresh.css?ver=2.6' type='text/css' media='all' />
    <!--[if gte IE 6]>
    <link rel='stylesheet' href='https://www.example.com/wp-admin/css/ie.css?ver=2.6' type='text/css' media='all' />
    <![endif]-->

    If it does, you’re on the right track. Personally I’d check to ensure that the /wp-admin/wp-admin.css file and the wp-admin/css directory have been uploaded properly.

    If you have access to your server error logs you could check to see if you are getting errors related to those files.

    Still looking for help on this. Here are more details I’ve uncovered:

    If I added wp_admin_css( 'install', true ); to the CSS area of the admin-header.php file, I could get some of the admin CSS to load. Then, by forcing it to load each individual style sheet — wp_admin_css( 'css/colors-fresh' );, wp_admin_css( 'css/daashboard' ); etc, I was able to get it to load most of the CSS, and I could live with the few minor glitches.

    Posting seemed to work, however, as soon as I wanted to upload an image, I found that the image loader isn’t loading, which makes me think all of the javascript is probably not loading, just as the CSS is not loading. This is a bigger problem.

    As an experiment, I tried creating a new database, uploading fresh admin files, and installing that. The install worked, but when it went to admin it had no CSS. So I replicated this problem with a fresh install of 2.6, not just on a upgrade from 2.5.1 to 2.6.

    Also, in my case, I haven’t had the problem of the CSS not loading for the login page — login CSS is just fine, but after login, then the Admin area has no CSS and, apparently, no javascript either.

    Help!

    having the same css problem on both login and admin page.

    Note! I have installed from scratch

    I had the same problem and it turned out to be apache misconfiguration. In a debian system i installed wordpress 2.6 and at the end I was using the old wordpress (2.5.1) but the config file was pointing to 2.6.1 directory so it was loading part from the old and part from the new tree. Main page was OK by the admin wasn’t (no stylesheet).

    I suggest you check your apache aliases.

    i’m new to alot of this… how do i check apache alias?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Missing admin css after 2.6 upgrade’ is closed to new replies.