I use nodeprofiles for my user profiles. Unlike usernodes, these are not created automatically when a user signs up.

In my menu I have two sub-links under "Account".

One is "Profile" and goes to "profile/me" (using the Me module and PathAuto)
Second is "Edit Profile" which goes to /nodefamily/nodeprofile which goes:
a.) to your profile's edit screen if you have one
b.) goes to the edit screen where you can start to create a profile if you don't have one yet.

the only problem I have is someone without a profile who clicks on the "Profile" link. They get a 404 as it doesn't yet exist. They have to click on "Edit Profile" first. I have put some conditional php in the 404 which detects when this happens and I have written:

"Please create your profile by clicking here"

but it's not very graceful. Is there a better way of handling this problem of 404s caused by not-yet-created profiles on my site?

Comments

lunas’s picture

Did you ever manage to fix this? I'm having the same problem - want to ensure Google isn't running into 404s when it visits my user pages. Thanks.

esllou’s picture

Yes, I sorted out the menu items with some conditional PHP.

New user sees only "Create Profile", user with profile sees both "Profile" and "Edit Profile".