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:
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?
In
wp-config.php
beforerequire_once
add below code into file :Just to keep everything in one answer, this worked for me:
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.
Also had similar issues that affected custom fields and elementor plugins only after upgrade to the latest version of wordpress (5.5.1).
It was affected by the theme used (not developed by me). Switching between a default theme fixed the problem.
There were no errors displayed or logged.
Also project in live server without xdebug or other means of debugging except plain old way.
A simple change made, were there is no more ‘type=”text/css”‘ in the tag and the use of a pregmatch filter was the problem 🙂
fix:
Found e perfect inspiration here enter link description here.
Put
define('SCRIPT_DEBUG', true);
in wp-config.php and debug through console. It will tell you which file is not found during page load.the CSS was not loaded in my case ( with WordPress 3.7.1) because of an encoding problem.
Force UTF-8 encoding by replacing in
wp-admin/load-styles.php
the corresponding line by :In wp-config.php file you can add – define( ‘SCRIPT_DEBUG’, true);
This solves the problem but, it is not good practice to leave this config on true while on production.
Hope it helps
I was having a similar issue with a new installation of WordPress that needed redirecting to a temporary url.
My solution was to make sure the siteurl and home url had the http:// at the beginning of the url.
Hope it fixes it.
PHP Memory Limit could also be the problem, if it is too low for the page loading in backend, WP simply stops loading scripts. Setting up MemoryLimit 256->512 worked for me…
Using Lightsail with wordpress bitnami and wp-rocket here. Too specific to be honest.
The problem was the cache, wp-rocket is not compatible with mod_pagespeed.
The solution was to purge the mod_pagespeed cache
Then
And after, disable the mod, commenting out the following lines in the
<installdir>/apache2/conf/httpd.conf
file:and restart for second time apache
Where
<installdir>
was/opt/bitnami
, could change for multisite, if I’m not wrongSource wp-rocket incompatibility
Source disable mod_pagespeed
i know this is an old post
but maybe i can help other who are having the same issus
before you put another codes in you wp-config file , make sure that the folder wp-content permissions is 755