Applicable to:
- Plesk Onyx for Linux
Symptoms
-
WordPress admin dashboard is not displaying properly: layout is broken. css/js scripts are not loaded.
-
The following or similar error messages are shown in
/var/www/vhosts/example.com/logs/proxy_error_log
:CONFIG_TEXT: [error] 1938949#0: *7483 access forbidden by rule, client: 203.0.113.2, server: example.com, request: "GET /wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-but&load%5B%5D=ton,jquery-ui-position,jquery-ui-dialog,utils,moxiejs,plupload&ver=4.9.6 HTTP/2.0", host: "example.com", referrer: "https://example.com/wp-admin/update-core.php"
-
Browser DevTools (F12 in Google Chrome) > Network tab shows that
load-styles.php
file cannot be proceeded by a browser due to 403 error (Forbidden response).
Cause
Security settings in WordPress Toolkit.
Resolution
-
Go to Domains > example.com > WordPress > select affected WordPress instance > Security Status (Check Security in older WordPress Toolkit versions).
-
Select Disable scripts concatenation for WordPress admin panel and click Revert.
-
Connect to the server via SSH.
-
Open a file
/var/www/vhosts/example.com/httpdocs/wp-config.php
with a text editor. -
Add the following record at the end of the file before the
require_once
directive:CONFIG_TEXT: define('CONCATENATE_SCRIPTS', false);
-
Go to site's document root in Domains > example.com > File Manager:
-
Add the following record at the end of the file before the
require_once
directive:CONFIG_TEXT: define('CONCATENATE_SCRIPTS', false);
Comments
6 comments
If this is already at the beginning of the file, is this still recommended?
Would we add this anyway leaving them both in place, remove the one from the beginning of the file in addition to adding this to the end, or leave it as-is without adding it at all?
Hello @Greg P,
One is sufficient, no need to add the record twice.
It is showing for all the websites on the server. How to fix over 200 websites ??
Hello @Salman,
Am I correct that you have the same issue for all of these websites?
Have you tried the above steps for some of the websites?
For this particular issue, the solution doesn't look scalable.
In case the issue is different, please, create a request to Plesk Support to have a closer look at the issue.
Hello. Unfortunately I have this issue for two domains. One was solved by this tip:
in the wp-admin/load-styles.php file, change "error_reporting(0);" to "error_reporting( E_ALL | E_STRICT );" then refresh the page, if the page style return to normal, reverse the code change to it's initial state, and your site should look fine.
The second one I can not fix with any solution
Regards
Hello,
Actually, this is not a solution; this WordPress functionality should work.
What is the problem in nginx for this error?
I have tested on other servers with nginx (not plesk) this WordPress functionality works fine.
What is failing in plesk?
The concatenation of scripts, helps the loading speed of the wordpress backend.
How can it be corrected?
Greetings, Thank you.
Please sign in to leave a comment.