On Monday, I started working with an e-mail indicating the visual editor on one of the Wordpress sites that we manage / support, did not work.
Of course, I was able to reproduce the problem and found that there were a lot of Javascript errors in the console.

I searched the first error and found some posts on the Wordpress forum so that people can add the following to their wp-config.php file to fix this problem.
define('CONCATENATE_SCRIPTS', false );
However, nowhere else on the Internet does it explain why this suddenly needs to be added.
Because of this, I began to sort out the problem to find out if I could find out what was going on.
I clicked on the Wordpress admin area and noticed that the problem was always returning with this line of code.
Uncaught SyntaxError: missing ) after argument list load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,thickbox,shortcode,media-up…:227
Line 227
https://DOMAIN_NAME/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,thickbox,shortcode,media-upload&ver=4.3.1
as follows
if(!params['modal']){jQuery(document).bind('keydown.thickbox',function(e){if(e.which==27){tb_remove();return false;}});}}catch(e){}}
This happens when I am on the following pages in the Wordpress administration area.
// Dashboard /wp-admin/index.php // Plugins page /wp-admin/plugins.php // Edit user page /wp-admin/user-edit.php?user_id=
The source of load- script.php is different on each of these pages, so I provide this information below.
// Dashboard /wp-admin/index.php https://DOMAIN_NAME/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,thickbox,shortcode,media-upload&ver=4.3.1 // Plugins page /wp-admin/plugins.php https://DOMAIN_NAME/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,wp-util,wp-a11y,updates,thickbox,shortcode,media-upload&ver=4.3.1 // Edit user page /wp-admin/user-edit.php?user_id=
Then I got to a page in the admin area where the Javascript error did not display!
On this page, the script.php load source is as follows
Then I went to this file directly in the browser and specifically searched for the next line, as this is the line on which all other pages threw an error.
if(!params['modal']){jQuery(document).bind('keydown.thickbox',function(e){if(e.which==27){tb_remove();return false;}});}}catch(e){}}
To my surprise, this line of code is NOT counted, while IS code is minimized in all other cases where a Javascript error occurs.
if(!params['modal']){ jQuery(document).bind('keydown.thickbox', function(e){ if ( e.which == 27 ){
Nothing on the server was changed / updated, Wordpress, theme or plugins were not updated.
I also went as far as disabling ALL plugins, and also activated the Twenty 15 theme by default, but the problem still exists.
There are even Wordpress sites on the same server, as this site has problems, and on these other sites this problem does not occur.
At the end of this day, I really do not know if the detailed information presented above will help me understand what is happening and why define('CONCATENATE_SCRIPTS', false ); suddenly you need to add to wp-config.php so that Javascript errors go away, so the visual editor works again.
In any case, this is the most detailed information that I saw when someone provided regarding those who needed to add define('CONCATENATE_SCRIPTS', false ); to the wp-config.php file to remove errors.