I only have 13 users so far on a week old installation of drupal 4.7.(www.runstlouis.com)

the node/10 and node/11 user profiles are not viewable by any users and are coming up with page not found errors. When I am logged in as admin, I can see the pages, but only when logged in as admin.

CommentFileSizeAuthor
#12 profile_listing_fix.diff.txt1.08 KBmhutch

Comments

bobzemuda’s picture

additional info:

i notice in the mysql database that where others users have a number under the access and login entries, these users both just have 0.

RobRoy’s picture

I went to http://www.runstlouis.com/node/10 and could see the page. What is the issue here?

bobzemuda’s picture

i said node when I meant user. Sorry about that

http://runstlouis.com/user/10
http://runstlouis.com/user/11
http://runstlouis.com/user/15

can not be seen by anyone except for me when logged in as admin. Other users can be viewed, however.

RobRoy’s picture

Go to administer > access control as the admin user. Do you have 'access user profiles' checked under the 'anonymous user' role?

bobzemuda’s picture

Currently I do have annoymous users checked.

either way though, these three profiles are not viewable. They come up as "Requested Page Not Found" for anyone trying to access them but me logged in as admin.

mlncn’s picture

I have the same issue. Drupal 4.7.2, I also have CiviCRM in use but I don't think that's related. As an admin I can see all users, but as a regular user some other users -- though listed in the www.example.com/profile (user list) page -- cause a "page not found" error.

chx’s picture

erm let me guess are those users blocked?

mhutch’s picture

Version: 4.7.2 » 4.7.3

I can repro this. It happens for only one of my users, who happens to be the only one with 'last access'='never'.

Admins can see the page fine.

subsander’s picture

I noticed a difference too, that users who subscribed themselves through the form on the user/register were visible immediately, but users created through the administrator-interface were not.

An immediate fix is to set a default value greater than 0 for the 'access' field of the 'users' table in the database, or go through the user entries and put the value for 'created' in the 'access' field.

But perhaps the functionality the way it works officially, was meant to function like that: hide users who have never been logging in to the site.

Unfortunately the message 'page not found' isn't very neat in that case, but there might be an easy way to replace that.

mhutch’s picture

Status: Active » Closed (duplicate)

This is being patched in another issue: http://drupal.org/node/84490

mhutch’s picture

Status: Closed (duplicate) » Active

Actually the way they're looking at fixing it in that issue will require patching profile.module, to exclude users who've never logged in from the profile listings.

mhutch’s picture

StatusFileSize
new1.08 KB

Here's a quick fix that hides users from profile listings if they've never logged in, or if they're blocked. I think the reason that user.module will not display such users is to help prevent profile spamming.

mhutch’s picture

Status: Active » Needs work

Oops, forgot to change status.

Also I forgot, the profiles should be listed if the user viewing the page has the "administer users" permission, because in that case they can view the profiles. It's not such a big deal in the profile listings though.

beginner’s picture

Status: Needs work » Closed (duplicate)

I just noticed this issue. It is a duplicate of this one: http://drupal.org/node/87540
I close this issue because the patch here does not follow the patching guidelines. The patch attached to the other issue is basically the same, but properly formatted.
Can you review it, and set it as Ready to be Committed? The sooner it gets into HEAD, the sooner it will be backported to 4.7.