Why do I get access denied to user/main when logged in as admin?

Comments

Cory Goodwin’s picture

I get the same access denied page. What link did you click to get there? (I just typed it in after reading your question.)

Anonymous’s picture

just was checking to see if had node number and went straight to it.

nevets’s picture

Unless main is a user name and user/main is an alias for user/{uid}, I do not think that is a valid path.

Anonymous’s picture

I just go mysite.com/user/main while logged in as admin with all permissions enabled site wide and I get that BUT admittedly profiles are in a view so don't know if that has something to do with it.

Or it could be because when I set up profile 2 and created a public profile apart from default user create form page instead of adding new profile I just added new fields to the 'main' one which strangely works anyway except for the access denied going to that path which I guess I would never need to go to anyway but was looking at because of another issue I was getting help from nevets with.

main is default machine name.

vm’s picture

default machine name for what? a profile created with profile2?

drupal's internal path would expect the main to be a username or a uid as explained by nevets in a previous comment. to the best of my knowledge profile2 doesn't change that.

Anonymous’s picture

It was already there in user account (machine name main)
anyway never have any reason to go to it nor does any other user

vm’s picture

It was already there in user account (machine name main)

it was already where? where are you seeing this main name?

Anonymous’s picture

in structure>profile types> main profile (Machine name: main) which was already there set up by default.

vm’s picture

not in any install I have. As a matter of fact, profile types isn't a default menu in core. Perhaps it would be of benefit to have a vanilla install in a sandbox so you can compare what is what when it comes to default features in core and what modules are providing when they are installed.

Anonymous’s picture

Does vanilla pertain to virgin site not much touched by addons? so checked my other drupal site and it doesn't have any profile types in structure so you must be right that it is a feature of profile2 module.

vm’s picture

yes