WP (v1.0.2) Connection Error - SyntaxError: JSON.parse #876
-
Hello there, I hesitate to post this info publicly - but posting the 36k text on jsonlint.com I get this statement:
The HTTP HEADERS are Date Fri, 10 Jan 2025 09:51:20 GMT Obviously, something is wrong with this WP site, but I have no idea where to start - any Ideas? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 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 |
Beta Was this translation helpful? Give feedback.
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…