Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress admin not loading css/js

Tags:

I'm having a problem with the admin on a Wordpress site. I've scoured the interwebs and seen lots of other people with the same problem, but no definite solution. The admin is showing like this:

enter image description here

And when I inspect it, I get a 500 (Internal Server Error) on both load-styles.php and load-scripts.php

Anyone know what's up, and how to rectify?

like image 973
Marlon Creative Avatar asked Sep 12 '13 16:09

Marlon Creative


People also ask

How do I add CSS to WordPress admin?

Go to WordPress Admin > Appearance > Admin CSS MU and add the custom CSS you want. For Multisites, the settings page will be in the Appearance > Admin CSS MU of the main site. Only network admins can add/edit CSS.

Why is my WordPress admin page not loading?

Common reasons why you can't access wp-adminYour login credentials (username/password) are incorrect. You're being blocked by your security plugin. You changed the WordPress login URL. Your WordPress memory limit is too low.


2 Answers

In wp-config.php before require_once add below code into file :

define('CONCATENATE_SCRIPTS', false);  
like image 128
Arun Raj Avatar answered Sep 20 '22 15:09

Arun Raj


Just to keep everything in one answer, this worked for me:

define('FORCE_SSL_LOGIN', true); define('FORCE_SSL_ADMIN', true); define( 'CONCATENATE_SCRIPTS', false ); define( 'SCRIPT_DEBUG', true ); 

After page refreshing and it looks OK, maybe after re-login, set SCRIPT_DEBUG to false.

Don't forget about those last two settings if you're using a plugins for debugging or site optimization - though such plugins might override those settings.

like image 23
TonyG Avatar answered Sep 21 '22 15:09

TonyG