• Resolved jstallard

    (@jstallard)


    After migrating servers, everything seemed to be working perfectly.

    Initially the dashboards loaded correctly. Now I’ve cleared the cache and the dashboard css isn’t loading.

    This is my .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    File permissions are 755 for directories and 644 for files.

    load-styles.php is shown at the beginning of the list of css files when I go to ‘Inspect Element-Style Editor’ in Firefox. That doesn’t happen on dashboards with a working css.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jstallard

    (@jstallard)

    I found a fix in this post: Fix WordPress Admin Styles Not Loading

    It’s weird but it works.

    I added this to wp-config.php:
    define( ‘CONCATENATE_SCRIPTS’, false );
    And then the dashboard CSS came back.

    Anyone know why I’d have to do this?

    Thanks
    Jackie

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Your browser is caching things to stringently. If you hard flushed the cache, it might have worked.

    Thread Starter jstallard

    (@jstallard)

    No don’t think so Mika. Tried clearing all the caches I could find – Firefox, WP Super Cache, Eaccelerator. Made no difference.

    Initially, increasing system resources helped (am running CloudLinux). I commented out the CONCATENATE_SCRIPTS line and it was fine for a few weeks. Now the problem has just reoccurred. Yet the system hasn’t hit any of its resource limits. Am flummoxed! It’s Saturday evening in Australia. Could be a peak internet time but I don’t know how that could create this problem, unless it’s something to do with my Microsoft Azure server.

    I’d leave the CONCATENATE_SCRIPTS line uncommented, but I assume scripts are concatenated to speed things up?

    Thread Starter jstallard

    (@jstallard)

    Hi Mika

    I just tried clearing browser caches and running CCleaner.

    The dashboard CSS only loads if ‘define( ‘CONCATENATE_SCRIPTS’, false );’ is set in wp-config.php.

    I think that rules out a browser caching issue?

    The multisite hit no resource limits while I was testing this.

    The dashboard CSS works with the CONCATENATE_SCRIPTS directive, that’s the main thing. Would like to know why it’s necessary though ??

    Jackie

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Could be server caching.

    Basically “something” is holding on to old data. It’s not really a big deal. I’ve had pagespeed do it to me :/ Cloudflare too.

    Thread Starter jstallard

    (@jstallard)

    Ok thanks Mika ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Dashboard css not working on migrated multisite’ is closed to new replies.