Getting the error, "Access denied You are not authorized to access this page." after creating the path for a profile type. There aren't any permissions set for anonymous so it's weird. Even admin roles can't see this page will every permission enabled. Any idea what I've done wrong?

Comments

grasmash’s picture

Hm. I haven't run into that problem. I'd try a few steps to troubleshoot:

1) Clear you caches.
2) Try a different path. What path are you using?
3) Try this on a clean installation of Drupal.
4) Determine if other modules are conflicting by disabling them.

aniebel’s picture

Thanks matmatter23, I have done all but #4. Maybe I'm not understanding how to make this work.

1. I have an existing Profile 2 type
2. I installed and enabled this module
3. I edit the Profile 2 type
4. I only put "bacc-member in the input field as it appears the base path and "register" are already in place.
5. I save the Profile 2 type
6. I navigation to http://www.mysite.com/bacc-member/register

Here I get the error, even as user 1 with all permissions. Is this the correct process? I want to check before going through all my modules and disabling them one at a time.

EDIT: I have gone through and disabled practically all my modules with the exception of the ones that are required for this module and still have the same issue.

grasmash’s picture

Here I get the error, even as user 1 with all permissions. Is this the correct process?

You should not be able to access any user registration page (even the core one) while logged in as any user. User registration is applicable to anonymous users only.

Have you tried this as an anonymous user?

aniebel’s picture

Status: Active » Closed (works as designed)

But, of course!!! You are correct and I am embarrassed that it never occurred to me. Well, at least I hope if anyone else runs across this, they can learn from my mistake. Thanks, Matt!

eminencehealthcare’s picture

Is there any way to make this work while logged in as administrator?

ScottProck’s picture

I am experiencing the same issue and found this thread, however ...

#3 makes no sense for what the profile2 module is supposed to do.

Profile2 is in addition to the core account setup. In other words, when a person registers they will have both a profile and an account page. It is my understanding that a profile can be created after a person has registered on the site. The user would then be authenticated. If profile2 can not be used for authenticated users then what is the purpose of setting up a separate registration path.

The process I was planing ...

The user registers an account, then is taken to a confirmation page after they confirm their email address. The confirmation page presents them with the three profile types they can have on the site.

If authenticated users can not see the registration page for additional profiles then I don't see what the use of a profile2 module would be.

Does this mean a user can not be part of more than one role, as in have more than one profile?

Can someone help me understand the best use of this module then ... Thanks

ScottProck’s picture

For anyone who has come up with the confusion I was experiencing (how members can have more than one profile)

I was able to find a solution ... it is true that the separate registration pages can not be accessed once a user is authenticated. This is where I thought Profile2 would not allow a user to have more than one profile. What I did was uncheck the "Provide a separate page for editing profiles" radio button. This presents a separate profile tab in the user account edit page. If given the proper permissions, a user can then fill out any profile available to them.

I haven't completed the setup, so I'm not sure if after a user adds an additional profile whether or not new roles will be added to their account.

... Scott