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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Standalone and profile issues
Pages: [1]

Author Topic: Standalone and profile issues  (Read 1764 times)

DDJ

  • Guest
Standalone and profile issues
December 18, 2008, 10:08:12 am
Hello folks,

First off, many thanks for creating open source CRM such as this one!

My main problem is that I am still a rookie on administering CiviCRM, just installed yesterday and going thru instructions. I would like my website anonymous visitors to sign up for our mailing list (we will be using CiviCRM Mail, not Mailman.) without registering as Drupal user nor CiviCRM user. Having created custom data fields and profile and granting necessary Drupal access, now I have the standalone html code. The issue is that the html source code would not display anything on any server. What could be the issue? Is it not calling js files?

Moreover, what is the correct link outside CRM to give access for custom profile? The one given on help pages is giving me this error

Code: [Select]
Sorry. A non-recoverable error has occurred.
The requested Profile (gid=) is disabled, OR there is no Profile with that ID, OR a valid 'gid=' integer value is missing from the URL. Contact the site administrator if you need assistance.

Return to home page.
 

I double checked ACLs for Drupal, still no success.

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: Standalone and profile issues
December 18, 2008, 11:45:31 am
Can you list the settings you have applied to the Profile fields? Are they public etc?
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

DDJ

  • Guest
Re: Standalone and profile issues
December 18, 2008, 11:52:40 am
Peter,

Here the settings I have for fields:
-------------------------------------
CiviCRM Field Name   Visibility   Searchable?   In Selector?   Order   Active   Required   View Only   
First Name
(Membership)   Public User Pages   Yes    No      Move down one row Move to bottom   Yes    Yes    No    Edit | Preview | Disable | Delete
Last Name
(Membership)   Public User Pages   Yes    No    Move to top Move up one row Move down one row Move to bottom   Yes    Yes    No    Edit | Preview | Disable | Delete
Civil Service Title:
(Membership)   Public User Pages   Yes    No    Move to top Move up one row Move down one row Move to bottom   Yes    Yes    No    Edit | Preview | Disable | Delete
Agency
(Membership)   Public User Pages   Yes    No    Move to top Move up one row Move down one row Move to bottom   Yes    Yes    No    Edit | Preview | Disable | Delete
Delegate/Alternate
(Membership)   Public User Pages   Yes    No    Move to top Move up one row Move down one row Move to bottom   Yes    Yes    No    Edit | Preview | Disable | Delete
Home Zip Code
(Membership)   Public User Pages   Yes    No    Move to top Move up one row Move down one row Move to bottom   Yes    Yes    No    Edit | Preview | Disable | Delete
Personal Email
(Membership)   Public User Pages   Yes    No    Move to top Move up one row     Yes    Yes    No    Edit | Preview | Disable | Delete
» New CiviCRM Profile Field    » Edit Profile Settings

DDJ

  • Guest
Re: Standalone and profile issues
December 18, 2008, 12:10:12 pm
In addition to the code above, here is the generated html:
 
Code: [Select]
<form  action="http://xxxx.xxx/civicrm/profile/edit&amp;gid=2&amp;reset=1" method="post" name="Edit" id="Edit" >


  <div><input name="postURL" type="hidden" value="" />
<input name="cancelURL" type="hidden" value="http://xxx.xxx/civicrm/profile?reset=1&amp;gid=2" />
<input name="_qf_default" type="hidden" value="Edit:cancel" />
</div>


<script type="text/javascript" src="xxx.xxx/sites/all/modules/civicrm/js/Common.js"></script>
 

</form>

I am assuming it should add the fields automatically, right? Or would I have to add them manually?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Standalone and profile issues
December 18, 2008, 03:02:48 pm
Two comments:

1. You can not use fields that "belong to" a Membership record for a standalone profile input form. These can only be used in conjuction with an online contribution page which includes membership signup and renewal. I'm actually not sure how you added fields which "belong" to Individual records (e.g. First Name, etc.) to show up as "belonging to" Membership - are these all custom fields ??

In CiviCRM, the Membership record is a transactional record that is linked to a Contact record IF you are using CiviMember to manage memberships (usually paid memberships with defined membership periods etc.). You can use standard (built-in) Individual and Contact fields for all the data you've listed, except Agency and Delegate/Alternative. These may also "belong" to the contact - OR to the membership. But if you attach them to the membership then you'll have to use your profile inside a membership signup / renewal page.

>> http://wiki.civicrm.org/confluence/display/CRMDOC/Configure+Membership

2. You do not need to use the "standalone HTML" cut / paste option for a profile unless you want to use it on a separate non-CiviCRM website. You can link to it using the info here:

>> http://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles

HTH

You're link is failing because of the "membership fields" issue.
Protect your investment in CiviCRM by  becoming a Member!

DDJ

  • Guest
Re: Standalone and profile issues
December 19, 2008, 08:22:40 am
Dave, thank you for your tips!

Well, you were right on the money about Membership group. I should have done my custom fields as contacts. Contact custom fields generated the correct html and renders beautifully. Now the only thing, I am not quite sure if it's a redirection issue, but trying to sign up through <site root>/civicrm/profile/create?reset=1&gid=N gives this error once the form submitted:

Code: [Select]
Sorry. A non-recoverable error has occurred.
Could not find valid Key
Return to home page.

Another odd thing: <site root>/civicrm/profile/create?reset=1&gid=N shows CiviCRM menu, like find contacts, manage groups when I try submitting the form from any browser while being logged out. Obviously, I am visiting as an anonymous user.

Funny thing is submitted data still arrives to my email.

Generated HTML page also has the same issue except for on error page that is: siteroot/civicrm/profile/site_root

Something must be wrong on configuration that I am not catching up on.

My last question is how do I send a confirmation email to the user who signed up? In the current scenario it sends the info to me only.

Thanks again!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Standalone and profile issues
December 22, 2008, 09:48:55 pm
Check the form action= URL by doing view source when you display the profile create form. I suspect there may be an inconsistency in the way you have CIVICRM_UF_BASEURL  setting defined  and how you're accessing the form (and perhaps the Drupal $base_url in settings.php).

Quote
My last question is how do I send a confirmation email to the user who signed up? In the current scenario it sends the info to me only.
If you setup your mailing list(s) as Groups in CiviCRM (with Group Type = Mailing List) AND you have enabled the CiviMail component - then users will get an email asking them to confirm their mailing list subscription.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Standalone and profile issues

This forum was archived on 2017-11-26.