JavaScript error on “Site Editor (Beta)” page
-
Out of pure curiosity I enabled the “Site Editor(Beta)” on a local test site. There’s a JavaScript error on its page:
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
that point to this file:
/wp-content/plugins/gutenberg/build/redux-routine/index.jsLooking at the network tab I found a request initiated by this index.js file, and it’s URL is:
mysite.com/?_wp-find-template=true
However, the WordPress installation I’m working on is located atmysite.com/wp_test/.
In the browser’s URL bar I see this address: mysite.com/wp_test/wp-admin/admin.php?page=gutenberg-edit-site
So I think somehow the wrong URL is fetched.I have no WordPress installation on
mysite.com. That’s a simple HTML page, which starts like this:<!DOCTYPE html> <html> <head> <title>Testing sites</title>I’m running WordPress 5.5.1 and Gutenberg plugin is 9.0.0. No other plugins enabled. Theme is TwentyTwenty.
The topic ‘JavaScript error on “Site Editor (Beta)” page’ is closed to new replies.