Uncaught SyntaxErrors in generated JavaScript code
-
I have two issues with my WordPress website:
- The widget editor is unresponsive: it is impossible to edit widgets, drag and drop doesn’t work.
- The article/page editor is unresponsive: instead of the editor, I see just a html textarea. Furthermore, the font color is white, so I cannot see the text unless I select it.
After opening the widget editing view (wp-admin/widgets.php) with Chrome’s developer tools, I observed the following errors:
- Uncaught SyntaxError: Invalid or unexpected token (load-scripts.php)
- Uncaught SyntaxError: Invalid or unexpected token (wp-tinymce.php)
I have tried the following, yet nothing worked:
- Disabling and deleting all plugins
- Disabling and deleting all themes, except Twenty Seventeen
- Switching between PHP 7.1 and PHP 5.6
- Migrating the website from the server to my laptop in order to test locally
- Reinstalling WordPress from the admin panel
- Reinstalling WordPress manually
I don’t know what to do anymore. Any suggestions?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Uncaught SyntaxErrors in generated JavaScript code’ is closed to new replies.