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 (Moderator: Dave Greenberg) »
  • Drupal users and CiviCRM profiles are not linked properly
Pages: [1]

Author Topic: Drupal users and CiviCRM profiles are not linked properly  (Read 2712 times)

Whygee

  • Guest
Drupal users and CiviCRM profiles are not linked properly
March 07, 2009, 12:00:35 pm
Hi,

I've activated the "access Contact Dashboard" permission for authenticated user on my install and I created a menu item linking to "/civicrm/user?reset=1" that's only visible to authenticated user. However, after a couple of tests, I've realised that CiviCRM doesn't display the right profile: e.g. Mr Smith register with his email but he lands on Mr O'Leary's dashboard.

Is there a config I should change?

From what I understand, authenticated user should be able to access and edit their profile if they register on Drupal with the same email that's on their CiviCRM profile (and if, obviously, they got the permissions). What I want to do is allow users to access and edit their own profile only.
« Last Edit: March 07, 2009, 12:03:21 pm by Whygee »

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 and CiviCRM profiles are not linked properly
March 07, 2009, 02:17:25 pm

can you reproduce this on demo? i;ve given auth users permission to access contact dashboard

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

Whygee

  • Guest
Re: Drupal users and CiviCRM profiles are not linked properly
March 07, 2009, 02:38:34 pm
OK, I've added a contact with my email and I created a Drupal user with the same email.

I've got the same problem: I land on mario mario's dashboard and the contact I created was Bob Geldof.

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 and CiviCRM profiles are not linked properly
March 07, 2009, 02:45:06 pm

whats the username / password for your account and the contact id you created

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

Whygee

  • Guest
Re: Drupal users and CiviCRM profiles are not linked properly
March 07, 2009, 02:58:36 pm
username: bobgeldof
password: RHYSgjPVWy

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 and CiviCRM profiles are not linked properly
March 07, 2009, 03:20:45 pm

can u give it a shot again. I was able to reproduce it. I decided to reset the DB and get it to a known stable state and it does not reoccur. So not sure why that happened

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

Whygee

  • Guest
Re: Drupal users and CiviCRM profiles are not linked properly
March 07, 2009, 03:34:24 pm
I've tried again and it's working.

Leonard Cohen

username: leonardcohen
password: d5ThS8oH5m

However, I've noticed that Drupal is now asking for my name when I create an account.

Whygee

  • Guest
Re: Drupal users and CiviCRM profiles are not linked properly
March 09, 2009, 01:53:04 pm
Can you give more information on how you fixed this problem on the demo server?

Thanks.

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 and CiviCRM profiles are not linked properly
March 09, 2009, 02:26:43 pm

we load the db's on a periodic basis (weekly) on demo. We've been tweaking the db's to have a better setup and hence have been loading them seperately last week (drupal and civicrm). this caused the drupal users table to be out of sync with civicrm's civicrm_uf_match table. hence we were matching users to contacts erroneously.

i reloaded the civicrm database and things were fixed

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

Whygee

  • Guest
Re: Drupal users and CiviCRM profiles are not linked properly
March 09, 2009, 02:38:20 pm
I'm sorry, but could you explain how I can reload my CiviCRM DB?

Is there a risk that the DB become out of sync in the future? That would be embarrassing for me since it gives access to donation details.

In my case, I should note that I've moved my CiviCRM to a new Drupal installation so maybe this is what caused the problem.

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 and CiviCRM profiles are not linked properly
March 09, 2009, 03:26:40 pm

thats a demo server. So we just reset it on a periodic basis (definitely not recommended for production)

if you are still having the issue, please truncate your civicrm_uf_match table either via PhpMyAdmin or mysql command line. that should resolve the issue

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

Whygee

  • Guest
Re: Drupal users and CiviCRM profiles are not linked properly
March 09, 2009, 03:42:31 pm
Thanks, I got the right match now.

Let's hope it will stay that way ;-)

I will try to activate the permission so user can update their own profile.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Drupal users and CiviCRM profiles are not linked properly

This forum was archived on 2017-11-26.