• Resolved HKP

    (@hiskingdomprophecy)


    When I try to add a new IP to blacklist, or my own IP to whitelist, I get this message in red at the top of the page:

    “The response is not a valid JSON response.”

    I am using the latest WP and plugins versions and PHP 7.4.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @hiskingdomprophecy, can you please reach out to your host and have them allow ALL REST HTTP methods on your server and see if it helps? These are the REST HTTP methods that iTSec requires: GET, POST, PUT, PATCH, DELETE, and OPTIONS

    Thread Starter HKP

    (@hiskingdomprophecy)

    @shanedelierrr

    Thank you. I have contacted our host who replied:

    “The json error should not have any problem with our server because we allow all REST methods.

    If you still experience the same problem, you can try to follow this link https://blog.hubspot.com/website/json-response-error-wordpress to solve the problem.”

    I read the link, but if did not help as all it does is give lots of options. But I don’t know which is needed.

    We have a legacy site with no blocks and have been using iThemse Security plugin for years, so it used to work 100%. As I rarely change the settings, I don’t know how long this issue has been around…..

    Would appreciate your thoughts on what may have gone wrong.

    Regards and thanks!

    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @hiskingdomprophecy, I see. I tried using this free tool to check the allowed REST HTTP methods, but it seems only GET, HEAD, and POST are allowed by your server. Can they double-check on their end?

    Other times, this error can occur when unexpected output is included in the REST API response and can be diagnosed by looking at the API response and in the server’s PHP error logs. I’d recommend having your host check those as well.

    Please let me know how it goes.

    Thread Starter HKP

    (@hiskingdomprophecy)

    @shanedelierrr

    Thanks for your help and suggestions. I went through it all and then decided to re-test your plugin again before going back to our host.

    Glad I did, for I was surprised to see that both the whitelisted and blacklisted IPs were showing there, despite yesterday’s error messages.

    I will keep a watch on this and see how it goes. In the meantime I shall consider this resolved.

    Thanks again for your help, it was excellent!

    Thread Starter HKP

    (@hiskingdomprophecy)

    @shanedelierrr

    I have given this some more thought.

    Can you tell me in which plugin file my input data (e.g. whitelisted and blacklisted IPs) is stored?

    I should like to check the file to ensure my data has actually been updated and stored correctly for use by the plugin.

    Regards and thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid JSON response’ is closed to new replies.