CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
Pages: [1]

Author Topic: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts  (Read 3977 times)

klkosi

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 3.2.2
  • CMS version: Drupal 6.19
Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
October 29, 2011, 09:42:14 am
Dear All,

Hopefully someone can help me with this.  Until very recently, Drupal users with Drupal accounts were able to log into their accounts and edit a Civicrm profile embedded into their user accounts.  I logged in as a non-admin user today to see that while the button for the CiviCRM profile (called "Member Information") appears in the profile, there is no way to edit or view that information.

The settings for this civicrm profile are: 

- All fields are Individual or Contact, View Only is NOT checked
- All fields are visible to "User and Admin Only"
- Profile settings are: Drupal User Registration and View/Edit User account, Account Creation Required, Update Matching Contact

In Drupal:
- Authenticated users may Profile Create, Profile Edit and Profile View

My ACL settings in CiviCRM:

Authenticated User = Membership Type That Can Create Website Profiles
Profile permissions for Authenticated User = All functions permitted for "Membership Information" profile

So, now I am at a loss.  I have no idea why this was working previously and suddenly is no longer working.  Can anyone offer any suggestions as to what may have gone wrong?

Thanks

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
October 29, 2011, 01:36:38 pm
Thanks for posting. I was about to try debugging a problem that sounds similar in that we have 'teachers' who can access a bunch of 'student' records via an ACL Group - and the teachers can see the tab for the various profiles but clicking shows nothing. I was coming to the conclusion that the ACL permissions may not be working. Odd thing for me is that I don't think we updated civi between it working (if it ever did) - that client is still on 3.4.4
So, are we seeing the same problem?
As I said I can't get client to confirm that the teachers were ever able to click on that tab successfully, and it must have slipped through testing if that was the case.
What version are you on? Have you upgraded recently, if so from what to what, and did it coincide with the loss of this ability?
Might it be a drupal upgrade that has thrown things?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

klkosi

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 3.2.2
  • CMS version: Drupal 6.19
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
October 29, 2011, 06:09:23 pm
Hi Pete,

Yes, I think we are experiencing the same issue.  I am working with CiviCRM 3.2.2, Drupal 6.19.  I haven't updated from when the profile stuff worked and now, and when I was setting the site up, I created a non-admin user account so I could check that everything is working for users and it was fine.  I don't know what happened, but at least I'm not alone! 

I also suspect that it's a CiviCRM ACL issue, but I'm not sure what to do.  I disabled the ACL related to this profile and I was still experiencing the problem.

What have you been thinking about trying?
« Last Edit: October 29, 2011, 10:01:09 pm by klkosi »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
October 31, 2011, 03:12:57 pm
The code affecting 3.4.4 was introduced in 3.3.5

http://issues.civicrm.org/jira/browse/CRM-7509?page=com.atlassian.jira.ext.fisheye%3Afisheye-issuepanel

So, any fix on 3.4.4 won't apply to 3.2.2
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
October 31, 2011, 04:50:40 pm
OK
 I had to go digging to figure out how it works when a profile is displayed to be edited via drupal user form

but

1) a list of profile fields is retrieved.
2) The code determines whether the logged in user is 'admin'
3) Any fields with the visibility 'user or user admin' are checked & if the logged in user is NOT 'admin' then the fields are removed from the output.

'Admin' is determined by
1) User had drupal permission 'administer users' OR
2) user is the contact being viewed
3) User has passed in a checksum
4) User has been given ACL permission to view the specific Profile.

(this does mean that a user will not be able to see fields viewing the profile that they can see when viewing the contact).
« Last Edit: November 01, 2011, 01:18:39 pm by petednz »
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
October 31, 2011, 10:21:11 pm
so the logic seems flawed to me - if someone has access to the data on the contact record via ACL then they should access it via Drupal User profiles too.
that said, in our case there is a 'view' we are using to direct Teachers to other links for students (using a Relationship to pull in the Student Profile based on the target user) so I have just added a link so the Teacher sees the info in the Profile eg

civicrm/profile/view?gid=<id of profile.&reset=1&id=<civicrm ID>&p=1

compared to the location of the profile on the drupal user page eg /user/<user id>/edit/<name of civi profile>

that gets me passed this hiccup but would be great to understand where the logic needs unravelling so this isn't an issue for others.
« Last Edit: November 01, 2011, 01:25:03 pm by petednz »
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

klkosi

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 3.2.2
  • CMS version: Drupal 6.19
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
November 16, 2011, 06:01:29 am
So, I've managed to make the CiviCRM profile appear in user's member profile, but they are still unable to edit it.  I mostly futzed with Drupal permissions to get the profile info to appear on user profiles, but I am now stuck at letting people edit their info.

In my Drupal User Permissions, all of the following are checked for Authenticated Users --

profile create   
profile edit   
profile listings   
profile listings and forms   
profile view

So now, a user can view the CiviCRM profile in their profile when they log in, but when they click "edit" they can edit their Account Info (username and password) but not the CiviCRM profile here: user/(user id #)/edit/Member Information

The strange thing is that when I log in as a standard user and go to: http://www.DOMAIN.org/index.php?q=civicrm/profile/edit&reset=1&id=16&gid=8     

I am able to edit the user's profile info, save it, and all is well.  Then, when I go to "edit" in the profile, I see profile fields for the CiviCRM profile and I am able to edit them like I should be able to.  But when I log out and then log back in, the option to edit profile info is gone once again. 

Ugh!  Does anyone have any idea what's going on here?  Thanks!  For now, I guess I will provide the direct link to www.DOMAIN.org/index.php?q=civicrm/profile/edit&reset=1&id=16&gid=8   in membership menu so people can edit their info if they want.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
November 16, 2011, 11:39:00 am

what happens when u try to edit the civicrm profile in drupal account? does it give u any sort of error message?

a few questions:

1. do u have any acls enabled

2. what fields are present in the member info profile

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SmartBlug

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7.21
  • MySQL version: 5.5.24
  • PHP version: 5.4.3
Re: Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts
March 24, 2013, 05:38:18 am
Hi,

Are you sure you do not use hook on drupal side for login as hook_user_login() ?

I spent 5 hours with the same problem.... to finally figure I was using drupal_goto to redirect on a welcome page and it avoid CiviCRM to set-up session...

If you made the same mistake, use $edit['redirect'] = 'mynewpage'; in your hook_user_login() instead of drupal_goto and everything will be back as expected  ;D

Regards,

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Drupal users cannot see or edit CiviCRM profile info in their Drupal accounts

This forum was archived on 2017-11-26.