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 CiviEvent (Moderator: Yashodha Chaku) »
  • Please help improve my plan for events and mail set up
Pages: [1]

Author Topic: Please help improve my plan for events and mail set up  (Read 2697 times)

iteachnet.org

  • Guest
Please help improve my plan for events and mail set up
March 06, 2008, 08:30:35 pm
Dear CiviCRM Events, E-mail and Donation Users,

I'm using civicrm 1.9 on drupal 5.

I have a client that runs "retreats" in various parts of the world with different "coordinators" in charge of each event.

"They" want
1. a form for event-registration (which would include custom profile info).
2. a way to view who's signed up and add or subtract info about them.
3. a way to e-mail those signed up.
4. a way to keep those who attended / signed up for the long-term for future mailings.

Here's what I think I need to do:
1. make a group for each retreat
2. make a custom profile for retreat participants
3. make an event (needs to use non-US addresses -- this has been a problem so far)
4. make that available as a stand-alone page.
5. link each event's participants to civimail (don't know how to do this yet)

Please comment on and improve my do list.

I have worked unsucessfully on this for a long time, running into things that just didn't work, perhaps because I set up the parts in the wrong order.  I think I just don't understand how to make custom profiles integrate with signup forms.


I've separated contributions from the problem for now.  For a start, they'd be happy if they could just work through a centralized, always up-to-date database of names, addresses and info.

Of course, they'd love to have online payment and online contributions, but these are another issue.
« Last Edit: March 06, 2008, 10:25:41 pm by iteachnet.org »

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: Please help improve my plan for events and mail set up
March 06, 2008, 10:27:01 pm
I would first get this working for 1 group. You can use a smart group of all folks that attended an event and use that group for a civimailing.

You might want to check: http://drupal.demo.civicrm.org/civicrm/event/register?reset=1&action=preview&id=1 (valid for next couple of days till we reset the db) and see if that meets your criteria.

You can then extend it, so for n events, u can use n event pages with the same profile

lobo
« Last Edit: March 06, 2008, 10:35:53 pm by Donald 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

iteachnet.org

  • Guest
Re: Please help improve my plan for events and mail set up
March 06, 2008, 11:00:50 pm
Thank you.  Your example is close. 
I'm working on it.

Any advice on non-U.S. addresses? I've searched and searched and found nothing about how to include a list of other countries in the drop-down menu.

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: Please help improve my plan for events and mail set up
March 06, 2008, 11:07:37 pm

check: http://drupal.demo.civicrm.org/civicrm/admin/setting/localization?reset=1
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

iteachnet.org

  • Guest
Re: Please help improve my plan for events and mail set up
March 07, 2008, 01:06:53 am
Thank you for the localization link.  I get it now ;-)

Now I have a pear error when I try to test an event.  Working on that.

iteachnet.org

  • Guest
Re: Please help improve my plan for events and mail set up
March 07, 2008, 05:15:48 am
I have been trying all day to go through the basic steps I listed.

I made a profile and then tried to make a stand-alone form with it.  That failed -- the output was incomplete, perhaps because I mixed "types" (individual and participant??? as an error message told me I had mixed types).
So, I made the profile into two profiles.

Then, I tried to make an event.  Well, I got to the location screen and got an error ("Sorry.  A non-recoverable error has occurred.  Could not find valid Key.")

So, I thought that _might_ refer to the map key, which I had not enabled.  So, I went to Global Settings to make sure it was off and found that I couldn't find a way to disable it.  So, I applied for a new Google API.  Got it, put it in, and tried again.  Same error.

So, after spending all day, I still don't know if I can even get an online form to work for anonymous users.

______________
Here's the incomplete stand-alone form code:

So, I went for a "Stand-alone HTML form.

Admin > Profiles > choose the profile you want > click on stand-alone.

I get incomplete code.  Nothing shows (code below).
So I tried the same thing on the 2.0 Demo Site (drupal.demo.civicrm.org).  Didn't creat my own profile.  Used existing profile -- code output _is_ visible, though still incomplete -- lacks submit button. 

Anyone else have this problem?
<!--start code-->
<form  action="baseURL/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="baseURL/civicrm/profile?reset=1&amp;gid=2" />
<input name="_qf_default" type="hidden" value="Edit:cancel" />
</div>


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

</form>

<!--end code-->
« Last Edit: March 07, 2008, 05:28:34 am by iteachnet.org »

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: Please help improve my plan for events and mail set up
March 07, 2008, 06:33:25 am
Quote from: iteachnet.org on March 07, 2008, 05:15:48 am
I have been trying all day to go through the basic steps I listed.

Then, I tried to make an event.  Well, I got to the location screen and got an error ("Sorry.  A non-recoverable error has occurred.  Could not find valid Key.")

So, I thought that _might_ refer to the map key, which I had not enabled. 
Hi -

It looks like you and I are doing alot of the same things. The error above does not have anything to do with google map key.

When troubleshooting civicrm I have found that doing google searches for error messages helps alot - in this case I found the answer here on the civicrm bug tracker, provided by Dave greenberg:

Quote
This error can be caused by:
- Drupal caching enabled
- Missing record for Drupal user 0 (anonymous user)
- the host names dont match: the CIVICRM_UF_BASEURL and $base_url (in drupal settings.php) must have the same domain name. If base_url is not set, try setting it (not sure why it being unset causes it to fail, but it does.

It's annoying to have to turn off drupal caching but that's what fixed it for me. Also, clearing out the drupal "sessions" database table and deleting the contents of the files/civicrm directory often fixes problems that occur while I am configuring and playing around with civicrm.

Cheers,

Tobias
Kabissa - Space for Change in Africa http://kabissa.org

iteachnet.org

  • Guest
Re: Please help improve my plan for events and mail set up
March 07, 2008, 06:46:21 am
Thanks, Tobias.

I'll compare the base URL in civicrm and drupal And check on the caching setting in drupal.  Thanks very much!

David
I was just about to post this further experience:
---
I'm using civicrm 1.9 on drupal 5.
I Can't get past second page; sometimes can't get past the first.  I've already checked that mapping is not enabled.  Can't see any usps settings.  Can anyone see the problem in the backtraces below?   


Error with backtrace #1: unrecoverable error
    "Sorry. A non-recoverable error has occurred.

    Could not find valid Key

    Return to home page."

This is the same error reported in the post by Sarah at http://forum.civicrm.org/index.php/topic,2260.0.html

backTrace

/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 255
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Controller.php, fatal, 182
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Controller.php, key, 136
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Controller/Simple.php, __construct, 59
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Event/Page/ManageEventEdit.php, __construct, 102
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Event/Page/ManageEvent.php, run, 160
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Event/Invoke.php, run, 56
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Component.php(183) : eval()'d code, admin, 1
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Component.php, eval, 183
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Invoke.php, invoke, 692
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Invoke.php, admin, 96
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 319
, civicrm_invoke,
/home/www/vipassanahawaii.org/drupal5/includes/menu.inc, call_user_func_array, 418
/home/www/vipassanahawaii.org/drupal5/index.php, menu_execute_active_handler, 15


After the above error, I saw that an event had been created, but not configured, so I went through each of the screens manually.  Got all the way through with a) no mapping and b) no money requested to keep it as simple as possible and got this fatal error:
     Sorry. A non-recoverable error has occurred.

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
           

    * => CRM_Core_Error
      [1] => handle
              )

 =>
    [message] => Authentication failed.
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="Authentication failed." code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]

This is the same error reported in the post by Sarah at http://forum.civicrm.org/index.php/topic,2260.0.html
------------
backTrace

/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 148
, handle,
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 901
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/PEAR.php, PEAR_Error, 566
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/Net/SMTP.php, raiseError, 274
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/Net/SMTP.php, _parseResponse, 560
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/Net/SMTP.php, _authCRAM_MD5, 455
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/Mail/smtp.php, auth, 244
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Utils/Mail.php, send, 153
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php, send, 1841
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Event/BAO/EventPage.php, commonSendMail, 128
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php, sendMail, 351
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/StateMachine.php, postProcess, 166
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 220
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Event/Invoke.php, run, 101
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Component.php(183) : eval()'d code, main, 1
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Component.php, eval, 183
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/CRM/Core/Invoke.php, invoke, 144
/home/www/vipassanahawaii.org/drupal5/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 319
, civicrm_invoke,
/home/www/vipassanahawaii.org/drupal5/includes/menu.inc, call_user_func_array, 418
/home/www/vipassanahawaii.org/drupal5/index.php, menu_execute_active_handler, 15
« Last Edit: March 07, 2008, 06:49:43 am by iteachnet.org »

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: Please help improve my plan for events and mail set up
March 07, 2008, 10:28:26 am

If you have the budget, you might want to get some help from the folks here:

http://civicrm.org/professional/

Web Access is relatively affordable and can get you up and running fairly quickly (and probably give u some training while they are at it)

Having to struggle to get a working system does not make for a pleasant experience :(

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

iteachnet.org

  • Guest
Re: Please help improve my plan for events and mail set up
March 07, 2008, 09:36:15 pm
Thanks, no budget, but working hard.

I have made sure that the base URL of civicrm and drupal are the same.  Turned off caching. 
Access to form is available now to logged in users, but anonymous not possible.

I see a fatal error involving /civicrm/CRM/CORE/BAO/UFGroup.php
I thought that by choosing public, I was making it possible for anonymous users to see and use the form.  No?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Please help improve my plan for events and mail set up
March 08, 2008, 06:56:04 pm
The "Authorization Failed" error has to do with your settings for Outbound Mail (SMTP). If you search on this forum you should find potential steps / answers for that one.

If anonymous user can not access your event registration form, check your Drupal Administer >> Users >> Access Control permissions for anonymous. You need to include "register for events", "access all custom data", "profile listings and forms".
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Please help improve my plan for events and mail set up

This forum was archived on 2017-11-26.