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) »
  • weird profile issue
Pages: [1]

Author Topic: weird profile issue  (Read 1246 times)

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
weird profile issue
May 11, 2012, 10:00:00 pm
I have two profiles that are used for user info.

Profile 1 is used during Drupal User Registration.
Profile 2 is used for View/Edit Drupal Registration.

When signed in as User 0 (admin) I can edit my info using Profile 2.  It works fine.

If I go to another user's account and click to edit their info using Profile 2 it doesn't show any fields. It does have a Save button. It creates a duplicate contact in CiviCRM.

If I sign in using my test_user account and click to edit the info using Profile 2 same thing. It doesn't show any fields. It creates a duplicate contact in civiCRM.

I have checked the profile to ensure it's set to update matching contact, i've checked the contact record to make sure it's matching the drupal user record id. I don't see this as a permission issue because it's happening when logged in as User 0 (admin) and I'm attempting to edit another user's record.

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: weird profile issue
May 11, 2012, 10:01:18 pm
here's the test_user screen capture


FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: weird profile issue
May 12, 2012, 06:45:02 am
Check your perms!  Since Drupal skips permission check for user 1, anything that works for uid 1 but not for any other user is almost always a permission issue.  That's my experience anyway...
Lead Developer, C3 Design.
Twitter: @FatherShawn

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: weird profile issue
May 12, 2012, 07:17:31 am
I don't see this as a permission issue because it's happening when logged in as User 1 (admin) and I'm attempting to edit another user's record.

I've checked to make sure that Drupal permissions are all set correctly.

Anonymous and Authenticated has the following permissions:
CiviCRM: access uploaded files
CiviCRM: profile listings and forms   
CiviCRM: profile listings   
CiviCRM: profile create   
CiviCRM: profile edit   
CiviCRM: profile view
CiviCRM: access all custom data

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: weird profile issue
May 12, 2012, 12:36:53 pm
But are the profile fields set to user/admin only?
Lead Developer, C3 Design.
Twitter: @FatherShawn

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: weird profile issue
May 12, 2012, 03:03:53 pm
Yes, but that doesn't make sense.

So I change all the fields to Public Pages. Still the same thing is happening. The only user who is able to update their information is User 1.

I think there's a bigger issue here. If I go to register a new account, I go through and complete all the info click create account and it gives me the error:  Error - The website encountered an unexpected error. Please try again later.


FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: weird profile issue
May 12, 2012, 03:50:14 pm
Ok I figured it out.

It wasn't a permission issue at all. It was a Drupal Rules issue, I had a Rule set up to redirect after account creation and add the new user to a role. Somehow that was screwing with everything.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • weird profile issue

This forum was archived on 2017-11-26.