Community & Support

Access denied to some user/* pages

Hi,

All was going great and ready to launch when now some user pages are not accessible .. access denied.

Administrator is able to see all user pages, but guests and authenticated users are redirected to access denied.

The strange thing is that it's not all user pages, just some .. although there is no different content on one user page content to another.

I've rebuilt the menu router, rebuilt permissions, still no good.

Please, what could possibly cause this?

Look so forward to any suggestions, and thank you.
Lilian

Comments

Forgot to mention, have

Forgot to mention, have pathauto installed which redirects user/* to member/[realname].

All permissions are correct.

Hmm

Are the user pages the same? Or do some pages contain some different contents (fields) then other profiles (perhaps optional fields)? Then it could be that the permissions for these fields aren't correctly set.

[sorry-somehow only read the initial post; so you ruled out permissions. Hmmm.....]

Hi dddave, Thank you for your

Hi dddave,

Thank you for your reply. Truncuating (?) the node access didn't work. Have checked all permissions again and still having the problem.

Don't understand why some user profiles are avail and others access denied. Scary stuff ..

Dave, do you perhaps have another idea?

Looking forward to any reply, and again thank you.
Lilian

For instance see

For instance see http://www.filmcontact.com/directory/Film%20Festivals

some of the users are avail, while others not ..

I think this fixed the

I think this fixed the problem:

TRUNCATE node_access;

INSERT INTO node_access (nid, gid, realm, grant_view, grant_update, grant_delete) VALUES (0, 0, 'all', 1, 0, 0);

sorry, the truncate node_access did not work ..

That is strange indeed

If you cannot make out a pattern why some of the profiles aren't accessible I would guess that somehow the database got corrupted (especially concerning entries about the accessibility of the profiles.....don't ask me which that would be). So a stroll through the user tables could help. Sorry, but I fear I am not a real help here.

To rule out the really easy possibilities here: Users themselves cannot protect their profiles from being visited by anonymous users?

Have you checked if the problem persists when you use the default user/* path?

Hi dddave, I think the

Hi dddave,

I think the problem might be of the following possibilities:

1. I have imported the users, so the users that have not logged in are inaccessible (access denied), although they are authenticated.

2. When I add an extra role on top of authenticated, the profiles are accessible.

3. Had http://www.drupal.org/project/role_weights installed which I never should have done. It's possible that is where the corruption happened.

Is there a database query that I can reset all users to authenticated role? Then will see if that will work ..

My goodness, this is not the right time for the site to go awry on me, it took 2 years to get this far, and ready to launch.

Would most appreciate any advise, and again thank you dddave :)

Sorry

I am unable to do any advanced mysql stuff.

If I can come up with something helpful I gonna post it here.

Meanwhile I really hope someone can help or you can sort it out yourself.

Good luck!

Ok, this might be the right

Ok, this might be the right direction ..

If a user has logged in, thus a timestamp in the 'access' in users table, their profile is available, but if they have not logged in 'access is 0', then access denied.

All users have 'status 1', thus authenticated.

Is this the normal behaviour of Drupal, or is it because I imported the users?

Please, how can I insert an 'access and login' timestamp for all users into the database? Example timestamp = 1253286745

Gee, I hope that is the only problem ..

Look forward to any reply.
Lilian