• I have the Visitors tab selected in the Users/Roles Manager section and on the left menu under Access Denied Redirect the radio button for Redirect to login page is selected and when I view the site in Incognito Mode so no user is selected the site does not redirect me to the login page. I have tried in multiple browsers.

    I use this plugin for another site and have no issues. Has anyone experienced the visitors role not reacting as expected based on the setting selected?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kokoruz

    (@kokoruz)

    I wound up adding the following code to the top of my header.php file because the visitor role would not react to any of the selections in the plugin. It’s like they didn’t even exist.
    <?php if ( !is_user_logged_in() ) { auth_redirect(); } ?>

    I even tried disabling all my plugins but AAM. I switched themes to one of the default themes that came with wordpress as well to eliminate a functions.php issue.

    Nothing would get the Visitor role to redirect to the login page until I hard coded the line above.

    The real head scratcher is the plugin works just fine on another site that I use it for. Wish I could understand why. The settings are identical. Same server and same php (7.3.5)

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @kokoruz,

    Thank you for the details. There can be many reasons for the problem. It is really hard to say what can be the root cause based on the provided details.

    Obviously mentioned snippet of the code is not an ideal solution, so the best way to deal with the problem is to understand why redirect does not happen.

    Try to export all AAM settings (https://aamplugin.com/reference/plugin#import-export-aam-settings) and let post here the JSON. This way I can try to replicate your setup.

    Regards,
    Vasyl

    Thread Starter kokoruz

    (@kokoruz)

    I pasted the JSON but it looks like it was flagged. I posted the file so you could download it.

    This link has the same JSON but it is wrapped in a zip file.

    https://reel.io/__qvzQU

    • This reply was modified 5 years, 6 months ago by kokoruz.
    • This reply was modified 5 years, 6 months ago by kokoruz.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I pasted the JSON but it looks like it was flagged. I posted the file so you could download it.

    Thanks! That’s preferable as large json dumps never work here and I’ve archived your earlier post. The forums eat formatted output and make a mess of it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Visitor – Access Denied Redirect: Not Woprking’ is closed to new replies.