I’ve installed TP3.1 on two servers (RH9 and FC3). Everything works fine except for accessing restricted docuemnts. I can login, change my password by screen/by mail, logout. Log back in again with the new password. All fine, except for documents in a document group to show up when logged in. They don’t show in the menu and are not accessible via url. The page doesn’t exist for modx. I’ve switched off caching and tried new installations on two servers. I can login and access pages at a friends installation though.
Here’s what I did:
Clean install
System config: enable access permissions, save
New document: Title ’New’, [[WebLogin]] and [[WebChangePwd]] in content field, caching off.
New web user: password, full name, email address, save
Web Permissions: add users group ’members’, add doc group ’secret’, link member group with secret group
Manage webusers: add user to group ’members’
New document: Set title to ’New’ and check ’secret’ doc group, caching off.
There must be something simple that I miss.
Can I do some checks on the cookies? Session variables? Database fields? Any clues? I’d help a lot if I have some direction on where to start before diggin’ into the code.
Web Permissions: add users group ’members’, add doc group ’secret’, link member group with secret group
Note you have "members" and "member" groups. Is this a typo?
If Sessions and cookies are working the after logging in you should see the logout link.
Make sure that aliases are unique (should pose a problem thought, but it’s good to check)
See this link for more information:
http://www.modxcms.com/why-web-users-and-web-groups.html
When a user is logged in MODx checks for the $_SESSION[’webValidate’] variable
Have a look at the assets/snippets/weblogin/weblogin.processor.inc.php file
good going theo.
I made the change.
I think that line should have been
while ($row = $modx->db->getRow($ds)) $dg[$i++]=$row[’documentgroup’];
but either way works
hmmm, it’s very strange that it works ok on other systems. Seems like php behaves differently on some platforms.
-
MODX Staff
- 12,272 Posts
Maybe a difference in MySQL 3.23.x vs. 4.x?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me