I recently moved my website from shared hosting to Amazon EC2. I also added domain access module which allows me to have subdomains within drupal to seperate content. I am using them like chicago.example.com nyc.example.com etc to have different city sections on my website.
For some reason some of my users are getting an "Access Denied" error immediatly after logging in. This is only happeneing to some of my users but enough of them that its quite a big problem.
I have posted an issue in the Domain Access issue queue #824548: Access denied when logging in but still cant seem to track the error down. It may be server mis configuration or some other module or setting.
If anyone thinks they can help me fix this issue I am offering a bounty of $50.
Comments
i had the same problem when
i had the same problem when SSO module was enabled. i'm not sure if you have an SSO module enabled, but here is a workaround
1. set a menu that needs to be called on access denied in admin -> settings -> error reporting e.g. accessdenied
2. in that menu handler do the following
you can create a module with the following steps
If an access denied error occurs during the logon process and if the user has actually been logged on, then he will be redirected to the site's homepage. If the user tries to access a page that he is not authorized to access, then it shows him an access denied error message.
1. Create a folder in your site's module folder and name it access_denied
2. Create a access_denied.info file in this folder
3. Copy the following contents in to access_denied.info file
4. Create a access_denied.module file in the same folder
5. Copy the following code in to this file
6. To install this module
6.a enable this via admin/build/modules.
6.b Set the access denied handler in Administer -> Settings -> Error reporting -> Default 404 (not found) page: to accessdenied and save the configuration.
This worked perfectly.
This worked perfectly. Extremely helpful information!
access denied title in d7
I get an access denied title in d7 though the user is logged in . how should i fix that?