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) »
  • Creating CiviCRM profile without having account
Pages: [1]

Author Topic: Creating CiviCRM profile without having account  (Read 7051 times)

AlanF

  • Guest
Creating CiviCRM profile without having account
September 05, 2008, 05:32:29 am
We're trying to use CiviCRM to allow anonymous users to a Drupal website to sign up to be placed in a database. But the problem is that being placed into a Drupal account requires administrator approval.

Got this message from a website visitor:

Hi,

I just got an error message trying to sign up [...]

On this page:

http://somesite.org/index.php?q=civicrm/profile/create&reset=1&gid=4

I completed the form, including all red asterisked fields, clicked
submit, and got this message:

http://www.somesite.org/civicrm/profile/create
----------------------------------------------------------------------------------

Sorry. A non-recoverable error has occurred.

This profile is not configured for the requested action. Contact the
site administrator if you need assistance.

Return to home page.

----------------------------------------------------------------------------------

I did not yet have a profile. I've since registered and requested an account.

thanks,


At first, I thought that I might need to enable this checkbox:

"Drupal user account registration option?"

But that didn't do the job.

Then I thought that I might need to enable "Access CiviCRM" under "civicrm module" for all roles for "Access control" under Drupal administration. But that didn't work either.

Is it possible/feasible for us to even be trying to be using CiviCRM to allow people to sign up if our Drupal site requires admin approval to add a profile?

Thanks,
Alan

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Creating CiviCRM profile without having account
September 05, 2008, 08:17:32 am
OK, this could be a couple of different things. It's hard to tell exactly what since you didn't say what fields are on your profile, etc.

Assuming the following:

You are directing people to a CiviCRM profile with fields to fill in and you want them to have the option to register for a drupal account while they are there.

If this is the case, then make sure the following are true:

- you have checked the "profile" box at the top of the CiviCRM profile
- you have checked the "Drupal user account registration option" box under advanced settings (optional, but sounds like you want this)
- Make sure in drupal access control that you have given anon users the "profile listings and forms" privilege under CiviCRM
- For every CiviCRM profile field, under "visibility" you will need to have either "public user pages" or "public user pages and listings" selected.


If all of these are true, then we need to look at what fields you've put together on your profile. But the error message you are getting is related to CiviCRM and not Drupal so the fact that a Drupal account requires admin approval *shouldn't* have anything to do with this error. If you do all of the above and are still getting the error, then turn on backtrace and debugging in CiviCRM > Administer CiviCRM > Global Settings > Debugging. Then go fill out the form (logged out of course) and paste back the full error that you get.

AlanF

  • Guest
Re: Creating CiviCRM profile without having account
September 05, 2008, 08:08:33 pm
Thanks for the detailed reply.

The first three items that you mentioned were already true. I went through and set "public user pages" for each field. That didn't make any difference, so I enabled backtrace and debugging, as you suggested. Here's the output:

---
backTrace

/home/election/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 255
/home/election/public_html/sites/all/modules/civicrm/CRM/Profile/Form/Edit.php, fatal, 86
/home/election/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, preProcess, 283
/home/election/public_html/sites/all/modules/civicrm/CRM/Core/StateMachine.php, buildForm, 142
/home/election/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/election/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/home/election/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/home/election/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 220
/home/election/public_html/sites/all/modules/civicrm/CRM/Utils/Wrapper.php, run, 77
/home/election/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 852
/home/election/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, profile, 124
/home/election/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 319
, civicrm_invoke,
/home/election/public_html/includes/menu.inc, call_user_func_array, 418
/home/election/public_html/index.php, menu_execute_active_handler, 15

---

I could tell you more about any one of those individual lines in the code if you like. We're running 1.9.12432. (I know that's not the latest version out there.)

Thanks for your help.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Creating CiviCRM profile without having account
September 06, 2008, 11:54:24 am
Alan:

Can you give more details about profile that you are using. Note that CiviCRM does not all mix profiles in create mode. By mix i mean Individual field + Household field, and also component profiles are also not allowed. (like profile with membership fields)

HTH

Kurund
Found this reply helpful? Support CiviCRM

AlanF

  • Guest
Re: Creating CiviCRM profile without having account
September 09, 2008, 12:58:20 pm
The profile contains only "Individual" fields. It does not contain any membership fields. It contains a mixture of standard and custom fields, but that should be okay.

What in particular should I tell you about the profile? Would you like to know a list of all the fields it contains? I suppose I could also try to set up a similar profile that contains only a single field and see whether it displays the same behavior.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Creating CiviCRM profile without having account
September 09, 2008, 02:06:00 pm
Alan - Perhaps some "definitions" would help...

Drupal User -> someone who was registered for a Drupal account. (These are stored in Drupal's 'users' table.)
CiviCRM Contact -> any person, organization or household entered stored by CiviCRM (in the civicrm_contact table).

When CiviCRM is enabled in Drupal, we automatically create a linked Contact record whenever a new Drupal User is registered. However, there are typically many more Contacts than Users.

This background is also described here:
>> http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=14426
>> http://wiki.civicrm.org/confluence/display/CRMDOC/Synchronize+Users-to-Contacts

So... you can definitely allow folks to complete a CiviCRM Profile anonymously - and they should be entered in the DB. However, you do need to set the proper Drupal "permissions":

>> http://wiki.civicrm.org/confluence/display/CRMDOC/Default+Permissions+and+Roles

If you want folks to have an easy way to maintain / update their info - then you'll want to encourage them to become Users and then integrate your CiviCRM Profile with Drupal's User Registration and My Account forms. See this recent post for examples:

>> http://forum.civicrm.org/index.php/topic,4711.msg20613.html#msg20613
Protect your investment in CiviCRM by  becoming a Member!

AlanF

  • Guest
Re: Creating CiviCRM profile without having account
September 15, 2008, 08:50:18 am
Sorry, none of that helped. I tried adding as many relevant permissions as I could, but to no avail.

I reallly think that I need to address this in a real-time way. I'm perfectly happy to transfer whatever I learn in that place to this forum so that it can be available to future people, but I feel like I've hit the limits as to what can be accomplished by asking questions on this forum.

I found that on Friday (admittedly at the end of the business day here in Massachusetts), I was trying to ask questions about this on the IRC chat, but no one was responding to my reply. However, I'll try it again.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Creating CiviCRM profile without having account
September 15, 2008, 09:12:06 am
AlanF,

Can you please post all of the fields in your profile and what view it is set to? Example:
Individual first name (public user pages and listings)
Individual last name (public user pages)
individual home phone (public user pages and listings)
organization name (public user pages)
organization phone (public user pages)

etc etc

Posting all of the fields you've put in your profile will help us figure out what the problem is.
Thanks!

AlanF

  • Guest
Re: Creating CiviCRM profile without having account
September 15, 2008, 09:55:37 am
First Name
Last Name
Email (Primary)
Street Address
County
Individual
City
State
Zip Code
Zip Code Suffix
Phone
Maximum distance you're willing to travel
Maximum length of shift
Indoor/outdoor availability


They're all Individual, with Visibility of "Public User Pages". None are searchable or in selector. All are active. None are view-only.

Under profile settings, I initially limited it to members of a selected group, but then I removed this restriction. Saw the access problem both ways.

Under "Used for", "Profile" is checked.

The "Add new contacts to a group?" setting points to a group.

The Drupal account user registration option is checked.

Both a redirect URL and a cancel URL are specified.

Thanks a lot for your help.
Alan

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Creating CiviCRM profile without having account
September 15, 2008, 11:14:30 am
Just to double-check, have you tested filling out the profile while you're logged in and seeing if you still get the error? Log in as your administrator and fill out the form. Then, if you still get the error, I would try a process of elimination:

1. Remove 'add contacts to group' option, drupal account registration option, redirect and cancel urls (leave fields blank)
 
After doing above, retest and see if you still get the error. If so, then also do

2. Remove your three custom fields (max distance, max length of shift, indoor/outdoor)

Then test again and see if you still get the error. If so, then also

3. Remove all fields from your profile except individual first name, individual last name, and individual email (primary).

Now test again. With the final profile, it should definitely work. You can then start adding in fields again a few at a time until you figure out which one is causing the issue. Yes, kind of annoying, but I don't see right off the bat here what the issue is...post back your findings.

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: Creating CiviCRM profile without having account
September 15, 2008, 12:44:37 pm
Quote from: AlanF on September 05, 2008, 05:32:29 am
Is it possible/feasible for us to even be trying to be using CiviCRM to allow people to sign up if our Drupal site requires admin approval to add a profile?

HI Alan - seems this crux of your question is the above (unless i missed something in skimming through this - did anyone answer it?). Can you just briefly allow "Visitors can create accounts and no administrator approval is required." and see if it works?
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) »
  • Creating CiviCRM profile without having account

This forum was archived on 2017-11-26.