Skip to content

WP (v1.0.2) Connection Error - SyntaxError: JSON.parse #876

Discussion options

You must be logged in to vote

The WordPress JSON API of your site is returning a script tag. Normally, I would say that this is a third party plugin doing something wrong.

However, from these very few bytes you have shared, it appears that you have a script which sets a function with a weird name starting with _0x. Last time I saw something like that, the site was hacked.

Try disabling all plugins except for the Panopticon connector plugin. If you get the same result, sorry, your site is hacked; you'll have to clean it first.

If the problem disappears, one of the plugins you are using is printing out a script tag before the WP-JSON response. Start enabling plugins one by one and visit the /wp-json URL on your site unt…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@r3dvorak
Comment options

@nikosdion
Comment options

Answer selected by r3dvorak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants