• Resolved andi88k

    (@andi88k)


    My WordPress backend is not loading with CSS….the frontend is working fine but once i try login to my wordpress admin the page load without any style .. I have reinstalled WordPress core file many time but problem still not fixed

    the error in chrome consul is showing :

    Refused to apply style from 'https://www.csm.school/wp-admin/load-styles.php?c=1&dir=ltr&load%5Bchunk_0%5D=dashicons,admin-bar,wp-pointer,site-health,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-m&load%5Bchunk_1%5D=enus,widgets,site-icon,l10n,buttons,wp-auth-check&ver=5.4.2' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO does not optimize backend JS/ CSS andi88k, something else must be intervening here?

    frank

    Thread Starter andi88k

    (@andi88k)

    I think its something related to load style file somehow is not loading properly..

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    indeed, load-styles.php is WordPress’ own “CSS aggregator” and it looks like that is not working for you. no idea why i’m afraid :-/

    Thread Starter andi88k

    (@andi88k)

    Ok, but a WordPress core installation should fix it right.. I really dont know what else i should try …

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, could also be a problem with permissions (filesystem level)? any security plugin you recently installed/ updated that might be interfering?

    also; you can disable WordPress core JS/ CSS concatenation by adding this in your wp-config.php;

    
    define('CONCATENATE_SCRIPTS', false);

    hope this helps,
    frank

    Thread Starter andi88k

    (@andi88k)

    thank you Frank, now its showing only the top bar only with style ?? but the rest of the page its still without style .. i have also change some of the file from 644 to 664 but still nothing changed

    please have a look on the below screenshot

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    maybe check if the wp-admin directory has x (exectution) permissions for all users (for user, group & others)?

    Thread Starter andi88k

    (@andi88k)

    yeap Wp-admin directory permission is set 755 …
    https://ibb.co/ZVn8GdJ

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    a rogue .htaccess entry maybe?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Will close as “resolved” as not due to AO, but hope you were able to fix andi88k. Feel free to follow, I’m kind of curious to know what caused this ??

    I had this same issue, for me it had to do with changing to PHP 7.4.8. After I changed back to 7.3.20 everything worked fine again.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WordPress backend is loading without style’ is closed to new replies.