Support » Plugin: Advanced Access Manager » Visitor – Access Denied Redirect: Not Woprking

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 Vasyl Martyniuk

    (@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

    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 6 months, 1 week ago by kokoruz.
    • This reply was modified 6 months, 1 week 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.