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) »
  • User registration profiles linked to my account??
Pages: [1]

Author Topic: User registration profiles linked to my account??  (Read 6631 times)

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
User registration profiles linked to my account??
October 07, 2008, 11:50:22 am
Hi-

I created a new profile for user registration for our mailing list.

I used the Administer CiviCRM -> CiviCRM Profiles and added new profile along with fields for First name, last name, address, email address. Then I used the "standalone form" and posted it on my website --- this is for the public to sign up to our mailing list.

It works fine -- I tested it by adding a dummy user "Snow White" and a new user profile is created in the database and all info looks good but when I attempt to delete it, I get this message

"Selected contact cannot be deleted.
This contact record is linked to the currently logged in user account - 'Snow White' - and cannot be deleted."

I am logged in as Admin (myself).... So, I'm trying to understand what is going on?

I don't want these profile/user registrations to be "linked" to me.... they should be their own record and we want to be able to modify/delete it at any time.

Any feedback would be appreciated! Thanks!

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: User registration profiles linked to my account??
October 07, 2008, 12:17:37 pm
OK, couple of things.

1) Were you logged in when you filled out the form?? Double-check by logging out and refilling out the form. See if it creates a new contact record in civicrm and see if the View contact screen has a link to the user account (which should not go to you if you were definitely logged out).

2) You say you created a new profile for user registration for mailing list...is it in fact supposed to be for website user registration or is it just supposed to be for a mailing list signup? If for mailing list, is it for CiviMail or a different mailing list? I am just trying to understand if you're actually creating a new website user when filling out this form?

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: User registration profiles linked to my account??
October 07, 2008, 12:27:37 pm
Yes, I was logged in when I submit a dummy record.... But I didn't think that matters? I mean if someone is going to sign up to our mailing list from the website--- there's a chance I might be logged in doing something on CiviCRM. That doesn't make sense?

When I said mailing list.... yes, the profile form creates a new contact with mailing address and email address (which it does) -- and then I can use it to export to mailing label or do a email blast with CiviMail --- Did I set up this wrong?

Maybe this will help, check out --- (http://www.bensbells.org/form.JPG)

I also noticed when I am logged out the form does not work:

Sorry. A non-recoverable error has occurred.
The requested Profile (gid=1) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.

I must have this setup wrong.....
« Last Edit: October 07, 2008, 12:38:46 pm by ToddFur »

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: User registration profiles linked to my account??
October 07, 2008, 12:49:14 pm
OK, well that's the problem.

If YOU are logged in when YOU submit the form, it's going to update YOUR information.

If someone ELSE comes to the website and fills out the form, it will do one of two things:
1)if THEY are logged in as their own user, it will update their contact info which will be tied to THEIR user (not yours)
2) if they are NOT logged in, it will just add a new contact to the database (assuming their first, last and email don't all match with another contact in which case it would update that contact record)

So, since you were logged in, it changed YOUR name to Snow White instead of creating a new user. Other people are not logged in as you, so it won't be touching your contact record. If you want to test this, just log out and fill in the form. Or, create a different user, log out and back in as that new user, and update the form. Then you'll see that it's only creating new contacts or updating the contact record of whoever filled it out (not just you)!!!

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: User registration profiles linked to my account??
October 07, 2008, 12:54:45 pm
Actually, when I am logged out I get:

"Sorry. A non-recoverable error has occurred.
The requested Profile (gid=1) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance."

What I want is for a user to be able to simply add their contact info to our database --- I don't want them to sign up to be able to "log-in" the database....

I guess I need to re-read the CiviCRM Profile guideline but this is what I interpreted.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: User registration profiles linked to my account??
October 07, 2008, 01:01:38 pm
OK, you don't have to have this profile create new accounts; the only time that happens is if YOU CHOOSE THAT OPTION when creating a profile. So you can still use it and not have it do that.

Again, if someone fills it out it will create a new CIVICRM CONTACT (not a new website user!). This is what it sounds like you want since you've included name and email fields for people to fill out.

The reason you probably get that error when you're logged out is because you haven't given anonymous users permission to see it. In your Drupal access control, you need to check 'profile listings and forms' permission for anon users.

Please make sure to read this wiki page for more info:
http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: User registration profiles linked to my account??
October 07, 2008, 02:21:47 pm
First of all, you are helping me SOOO MUCH... thanks!

Per the wiki.... in addition to granting anonymous role to "profile listings and forms", I also granted anonymous access to "access all custom data"

This fixed 1 of the 2 problems. Right now, when I am logged out -- new contact does get created by filling out the web form. And if I log in as Admin later, I can delete it....  but if the mailing form is filled out by someone while I am logged in, I can't delete it --- this I don't understand.....

I simply want new CiviCRM contact created by an anonymous user for our mailing and email purpose to make announcements, etc. In the Wiki, it states "Make sure your profile has and includes at least first name and last name OR email address, as these are the minimum required fields for creating a new contact.  You must also check the option "Used for: Profile" in the Profile settings." This I already did.....

I'm still struggling with "This contact record is linked to the currently logged in user account" error.....



emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: User registration profiles linked to my account??
October 07, 2008, 02:41:52 pm
Ok, the reason you are getting that error is because YOU filled out the form while YOU were logged in. Thus, you CHANGED your contact info to be the Snow White info. THAT IS NOW YOUR INFO. You need to edit that contact info and put it back to how it was.

In terms of OTHER users. If a different user is logged in (meaning you are NOT logged in as admin but as someone else!), and that user fills out the form, then you (logged in as admin) will be able to delete that contact info if you want.

First, you need to distinguish between a 'new contact' and a 'new user'. A new user is a new drupal user that will be listed at admin/user/user. A new contact will be in civicrm.

Here is an example. Let say you have two drupal users at admin/user/user. Their usernames are:
admin
johndoe

Now, when you are using Drupal with CiviCRM, everytime you create a new DRUPAL user, it will create a corresponding contact record LINKED to that user id in CiviCRM. So DRupal user 'admin' has a contact record in Civicrm, and drupal user 'johndoe' has his own contact record in CiviCRM.

If you are logged in as 'admin', and you fill out the CiviCRM profile you created, it will update the 'admin' contact info in CiviCRM. If you are logged in as 'johndoe' and you fill out the CiviCRM profile you create, it will update the 'johndoe' contact info in CiviCRM.

CiviCRM will not allow you to delete your OWN contact record. So if you're logged in as 'admin' you can't delete the contact information that is attached to your Drupal user 'admin' (you could, however, delete johndoe's contact info). If you were logged in as 'johndoe' (and had permissions to access/delete civicrm contacts), you would not be allowed to delete the contact information for 'johndoe'.

For people who come and fill out the form and who do NOT log in to your website, they don't have a drupal user account. So when they fill out the form, CiviCRM will create a NEW contact for them (it will NOT create a new drupal user).

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: User registration profiles linked to my account??
October 07, 2008, 02:43:36 pm
Strongly suggest that you use 2 browsers (eg one is Firefox and the other Safari/IE/Opera) when finding your way round this, and be a 'logged in' user on one, and a non-logged in person on the other. It sometimes helps point to which part of the system needs tweaking
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

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: User registration profiles linked to my account??
October 07, 2008, 03:02:22 pm
Oh wow... PeterD -- you are right!

I do not get this problem when logged in on Mozilla Firefox. I was using Google Chrome....

This is odd!! Well, good to know... I guess it's a browser issue and not something the CiviCRM team can fix.....

THANKS emilyf and PeterD!!!!!!!!!!

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: User registration profiles linked to my account??
October 07, 2008, 03:07:10 pm
Heck - I wasn't even trying to suggest it was a browser problem  ;D - just that it is so helpful to be able to be both a 'logged in' and 'non-logged-in" person at the same time
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

unfeasible

  • Guest
Re: User registration profiles linked to my account??
November 20, 2008, 07:04:24 pm
Hi. you may have fixed this problem already, but it just became solved for me.
In the "permissions" area of your drupal site. click the tick box for "profile listings and forms" and then non authorised users will be able to see your form and register for things!

(finding this out suuuure saved me bacon!).

I do hope it helps you.  ;)

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: User registration profiles linked to my account??
November 20, 2008, 07:11:34 pm
Hey unfeasible - yep that is the story - emilyf had covered this higher up
Quote
The reason you probably get that error when you're logged out is because you haven't given anonymous users permission to see it. In your Drupal access control, you need to check 'profile listings and forms' permission for anon users.

Glad you found it though. It is kind of like learning to fly a big plane - so many switches and levers and all those things. And then you have to remember to take the damn handbrake off as well ;-)
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • User registration profiles linked to my account??

This forum was archived on 2017-11-26.