JSON input error
-
I have an error with my website in my admin panel.
It said JSON input syntaxerror.VM1222:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at XMLHttpRequest.r.onreadystatechange (bootstrap 24ac0fc…:5)Do you have any solutions?
Thank you.
-
Jetpack itself doesn’t use bootstrap, so I’m not sure the problem is linked to the Jetpack plugin. Could you try to deactivate each one of the plugins on your site, one at a time, until you find the plugin that’s causing the issue? If that doesn’t help, you’ll want to switch to one of the default themes like Twenty Sixteen for a few minutes, to make sure your theme isn’t the one causing the problem.
I hope this helps.
I’m not quite sure either. Because I have two websites with pretty much have similar plugins and theme. However, the other one is fine and not show any error. I tried to debug it and it said “it looks like your site can not communicate properly with Jetpack”
Moreover, it shows this error code:
SELF:
Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[server] => nginx
[date] => Sun, 02 Apr 2017 22:46:44 GMT
[content-type] => text/plain;charset=utf-8
[expires] => Wed, 11 Jan 1984 05:00:00 GMT
[cache-control] => no-cache, must-revalidate, max-age=60
[x-hacker] => Jetpack Test
[x-ac] => 2.syd _bur
[strict-transport-security] => max-age=15552000
))
[body] => {“error”:”Unknown Error”,”error_description”:”An unknown error has occurred.”}
[response] => Array
(
[code] => 400
[message] => Bad Request
)[cookies] => Array
(
)[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => {"error":"Unknown Error","error_description":"An unknown error has occurred."}
[raw] => HTTP/1.1 400 Bad Request
Server: nginx
Date: Sun, 02 Apr 2017 22:46:44 GMT
Content-Type: text/plain;charset=utf-8
Transfer-Encoding: chunked
Connection: close
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=60
X-hacker: Jetpack Test
X-ac: 2.syd _bur
Strict-Transport-Security: max-age=15552000{"error":"Unknown Error","error_description":"An unknown error has occurred."}
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[server] => Array
(
[0] => nginx
)[date] => Array
(
[0] => Sun, 02 Apr 2017 22:46:44 GMT
)[content-type] => Array
(
[0] => text/plain;charset=utf-8
)[expires] => Array
(
[0] => Wed, 11 Jan 1984 05:00:00 GMT
)[cache-control] => Array
(
[0] => no-cache, must-revalidate, max-age=60
)[x-hacker] => Array
(
[0] => Jetpack Test
)[x-ac] => Array
(
[0] => 2.syd _bur
)[strict-transport-security] => Array
(
[0] => max-age=15552000
))
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://jetpack.wordpress.com/jetpack.testsite/1/?url=https://vigilant.it/xmlrpc.php
[history] => Array
(
)[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
))
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
))
Could you let me know where the error appears? Do you see it on a specific page, or when doing a specific action in your dashboard?
The error only appear when someone login to the dashboard/inside the dashboard.
It does not give any serious problem to my website, but I want to get rid of this error message.Thank you.
Would you mind contacting us via this form, so I can run more tests with you on your site?
Thanks!
The topic ‘JSON input error’ is closed to new replies.