Support » Plugin: Redirection » Redirects suddenly conflict with iThemes Security Pro

  • Resolved redkite

    (@redkite)


    Sometime in the last two weeks redirects stopped working. The page says “Unexpected token < in JSON at position 0 (SyntaxError). Your REST API is not working and the plugin will not be able to continue until this is fixed.”

    I turned off all other plugins and found it was iThemes Security Pro causing the problem, but I use that on other client sites with Redirection with no issues. What do I need to change in ITS Pro now to remove this conflict?

    All the errors (8) in the console are for Redirection, “/wp-json/redirection/v1/setting/?_wpnonce=064d6d4a94:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)”

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Also – API Access is set to ‘default’ (not ‘restricted’) in iThemes Security Pro. I checked two other sites using both plugins, and they were set on ‘restricted’ API access, yet Redirection was still working fine.

    • This reply was modified 2 months, 4 weeks ago by redkite.
    Plugin Author John Godley

    (@johnny5)

    I don’t use iThemes so I couldn’t say what setting is needed. You’ll probably need to contact them and find out why it is blocking your REST API and how to resolve it.

    Will do, thanks.

    Same issue here, could be related to wp 5.3? I’ve put a support request in to iThemes and waiting to hear back. Please let me know if you find a solution in the meantime.

    Plugin Author John Godley

    (@johnny5)

    @designdevguru7, no I don’t think it’s related to that as it works fine on 5.3.

    I’m going to mark this thread as resolved for now, but do add more info if you have it.

    The problem is still there. Basically iThemes security has a feature to block rest api to public access (only logged users can access) and I have always enabled that option but with the latest release now I am getting {"code":"rest_disabled","message":"REST API disabled.","data":{"status":403}}

    Plugin Author John Godley

    (@johnny5)

    Ok. I don’t have iThemes to be able to test it, but it does sound like it is the cause of the problem. Redirection makes use of the WordPress REST API, and if iThemes is blocking that, then there is nothing that Redirection can do. Do you have problems using Gutenberg? What does your site health report say?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.