Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have a system where I have 3 user roles, anonymous, monthly and yearly. I have a page which is only accessible to yearly members. The problem comes when a monthly user tries to access the yearly page, I want it to redirect them to a 403 page telling them they need to upgrade, they don't have sufficient permissions. This works when an anonymous user tries to access a yearly page, but when a monthly member tries, it just crashes. It shows a server error or something. Can anyone point me in the right direction or tell me what I am doing wrong? Thanks
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #2
deekayen CreditAttribution: deekayen commentedHow did you setup the special denied messages? admin/settings/error-reporting ?
What is the error? If it's something that shows up in admin/reports/dblog, please post the lines from the error message.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedIt says:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies.
I'm not sure what the problem is, but when an anonymous user tries to go to a protected page, they are redirected to my 403 page. When a user with insufficient permissions (the wrong user role) tries, they get this page. Any ideas?