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 8 replies - 1 through 8 (of 8 total)
  • redkite

    (@redkite)

    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 10 months 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.

    redkite

    (@redkite)

    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?

    Suddenly seeing this problem after months without issue. Totally crippling issue.

    Existing redirections definitely continue to work just fine, but the admin area is nothing but errors now.

    Any ideas? Redirection has long been one of my favorite plugins, but now it’s unusable on the backend. The REST API is accessible to logged in users, and is configured the same way that it has been for years in iThemes, which hasn’t been updated.

    Turns out that some new code had caused this error to occur, which was silent on the front end, did not disrupt access to the REST API, and yet did cause this issue. This only became apparent when logging in failed to work properly.

    The error text, for any future visitors, was "NOTICE: PHP message: PHP Warning: array_merge(): Expected parameter 2 to be an array, null given in /dir/ourSite.com/wp-includes/load.php on line 932"

    • This reply was modified 6 months, 2 weeks ago by slapbox.
    • This reply was modified 6 months, 2 weeks ago by slapbox.
    • This reply was modified 6 months, 2 weeks ago by slapbox.
    • This reply was modified 6 months, 2 weeks ago by slapbox.
    • This reply was modified 6 months, 2 weeks ago by slapbox.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Redirects suddenly conflict with iThemes Security Pro’ is closed to new replies.