Closed (won't fix)
Project:
Members
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Jul 2007 at 15:16 UTC
Updated:
20 Sep 2010 at 08:49 UTC
Jump to comment: Most recent file
I can't get my Member List to display for Anonymous users. I've tried setting the permissions in the Access Control ares, the Created Member List itself and the Block by it still doesn't show.
Thanks for the help,
Sonic
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | access_0.jpg | 23.25 KB | deanloh |
Comments
Comment #1
wmostrey commentedComment #2
gintass commentedIt is an excellent and very needed module, unfortunately I also have similar problem. Except not only members blocks don't show up for anonymous users, but for administrator only block titles and table headers are displayed, but no data. I only have this problem if I'm trying to display members with blocks, but if I use pages, members module works as expected. I'm using nodeaccess module for access control.
Comment #3
deanloh commentedI'm about to lose all my hair on this one, I have managed to get the members list page to work:
http://www.bni-rendezvous.com/v2/members
... but as anonymous I can't view the individual member profiles. I need this to work very urgently, any workaround coming up soon?
Comment #4
wmostrey commentedTo view individual member pages, you need to give the anonymous role access to "access user profiles". That is not related to this module.
Comment #5
deanloh commentedActually, this is the problem, I have checked and re-checked, that the setting has been ticked as you can see in the screenshot. This is not the first time I set up a Drupal site, I guess I won't miss this. You can view the page here, try click on any members name to see what happens?
Comment #6
deanloh commentedSorry, here's the link:
http://www.bni-rendezvous.com/v2/members
Comment #7
wmostrey commentedAre you sure you're using the latest version? The link to users normally goes to user/$uid while in your example it goes to members/$name. Or did you adapt the module for instance? Or set up autopath?
Comment #8
wmostrey commentedComment #9
psletten commentedWhat kind of info do you need???
I've set up a basic drupal site, and only installed the following modules: token, pathauto, and members. The members module works fine - overall, but as mentioned in this thread: Members-blocks does not show for anonymous users!
The error seems to be in function members_view_block($name) in the way the array_intersect method is utilized!
Comment #10
psletten commentedI might have fixed the bug, but I havn't tested the solution thoroughly enough to say for sure.
You can fix it by substitute the array_intersect parameter $access with $member->access so the line looks like this in function members_view_block($name) :
$access = array_intersect($member->access, $roles[$account->uid]);This makes the previous line obsolete and it can be outcommented (or deleted). The whole function then reads:
Comment #11
timrivett commentedI've changed this code in my installation, and I still have the problem with unauthenicated users.
Comment #12
wmostrey commented