Gutenberg: Uncaught Error in Javascript: Improperly escaped script in wp-admin/edit.php

Created on 19 Dec 2018  路  4Comments  路  Source: WordPress/gutenberg

Describe the bug
Navigating to any wp-admin/edit.php page will cause a syntax error:

Uncaught SyntaxError: missing ) after argument list

When attempting to edit a post or page I get the same error which seems to cause the whole screen to stay white.

I am creating a custom theme, based off _S with a moderately low amount of new functions. Using git push deployment methods to upload to our staging site. The error only happens on the live site and my local development environment is unaffected. I have cleared caches, removed all plugins, etc.

This may be bug behavior because of the nature of the error. This is very similar to #2941

Expected behavior
Editing screen shows as intended

Screenshots
screen shot 2018-12-19 at 4 16 42 pm
screen shot 2018-12-19 at 4 16 46 pm

Desktop (please complete the following information):

  • OS: macOS Sierra 10.12
  • Browser: Chrome
  • Version: 70.0.3538.110

Additional context

Most helpful comment

Issue was resolved by updating roots / soil from 3.7.1 to 3.7.3. The origin came from adding theme support for soil-clean-up.

All 4 comments

Issue was resolved by updating roots / soil from 3.7.1 to 3.7.3. The origin came from adding theme support for soil-clean-up.

@cjstage thank's dude! You saved my day :)

I see this issue on our wordpress site, how can I fix this now? I am using this plugin.

@tylerjuliano which version of soil are you using? The mentioned error above was fixed in version 3.7.3. as mentioned by @cjstage.
Current version can be found here: https://github.com/roots/soil/releases

Was this page helpful?
0 / 5 - 0 ratings