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) »
  • Event Online Registration Profile
Pages: [1] 2

Author Topic: Event Online Registration Profile  (Read 3917 times)

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Event Online Registration Profile
August 05, 2011, 08:14:26 am
I have configured an event with online registration enabled and included both a top of the page profile and a bottom of the page profile, but on the registration page, only the top of the page profile is appearing. I've tried changing the profiles to various others thinking one of the profiles might be the issue, but it doesn't make a difference. I cannot get the bottom-of-the-page profile to appear on the registration page. Anyone else run into this?

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: Event Online Registration Profile
August 05, 2011, 02:45:22 pm
i suspect the issue may be the field types you have in your profile - unless it is 'there' but not showing due to some browser issue but that seems unlikely to me as don't recall this problem being floated by others - maybe replicate on demo so we can help find the problem for you
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

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: Event Online Registration Profile
August 19, 2011, 11:28:06 am
Quote
I have configured an event with online registration enabled and included both a top of the page profile and a bottom of the page profile, but on the registration page, only the top of the page profile is appearing.

We've just done an upgrade from 3.3.2 to 3.4.5 and are running into the same issue.   Seems to be related to access.  Some additional observations in our case

- Have tried various combinations of profiles with and without custom data and migrated by  from our upgraded as well as news ones.

- I've tried creating a brand new event with 2 simple profiles (each with default settings) each with one non-custom field of type participant. I've added these to my new test event.

- When I then visit the event page, as a logged in user,  I only see the first profile.  The header of the 2nd profile is not rendered.

If I access the site as an anonymous user, both profiles appear as expected.

- if I switch the order of the 2 profiles, always the first one listed on the configuration page  is rendered to me as a logged in user. In other words, both appear to have valid fields for the event.

- I'm not having trouble with my contribution pages - both profiles appear there as expected.

Does this help pointpoint a problem? I can try to reproduce it on demo.

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Event Online Registration Profile
August 19, 2011, 11:38:03 am
Still same issue here and to note, I'm experiencing it on 4.0.5 and it does indeed seem to be functioning properly if I'm an anonymous user, but authenticated, that second profile simply does not appear.

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: Event Online Registration Profile
August 19, 2011, 12:30:23 pm
Good to hear I'm not the only one.

I've created a new event on demo to try to test it. On demo, the profiles are working as expected for this event I created:

http://drupal.demo.civicrm.org/civicrm/event/register?reset=1&action=preview&id=9

Any suggestions as to what we should check on our instances where this doesn't seem to be working quite right?

Thanks,

Aaron

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Event Online Registration Profile
September 15, 2011, 10:29:46 am
I was able to make the post profile appear for logged in users by commenting out this conditional statement from the CRM/Event/Form/Registration.php file:

Code: [Select]
if ( CRM_Core_BAO_UFGroup::filterUFGroups($id, $contactID)  )
However, I don't know what repercussions will come from this.

Filed issue: http://issues.civicrm.org/jira/browse/CRM-8874

joshathedone

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
  • CiviCRM version: Civicrm4
  • CMS version: Drupal 7
  • MySQL version: 5.1.41
  • PHP version: 5
Re: Event Online Registration Profile
January 01, 2012, 10:26:39 pm
I have the same problem on 4.0.8, and can confirm the fix.

jbertolacci

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
Re: Event Online Registration Profile
March 05, 2012, 01:23:06 pm
I'm having the same issue with 3.4.8. Just consolidating some research in this post for others...

http://issues.civicrm.org/jira/browse/CRM-8874
http://forum.civicrm.org/index.php/topic,23477.0.html

jbertolacci

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
Re: Event Online Registration Profile
March 05, 2012, 02:56:04 pm
Ok, the issue seems to be that when CRM/Event/Form/Registration.php calls filterUFGroups...

Code: [Select]
if ( CRM_Core_BAO_UFGroup::filterUFGroups($id, $contactID)  )
...it is passing an array for $id rather than the actual id of the profile. So when CRM/Core/BAO/UFField.php eventually is invoked (via CRM/Core/BAO/UFGroup.php) it is returning a null value for profile type and the profile is not showing up.

The code below allows CRM/Core/BAO/UFField.php to handle the array, but it doesn't answer the larger question of why Registration.php is passing a variable when the user is anonymous and an array when the user is logged in. The quick fix: in UFField.php find static function getProfileType and replace...

Code: [Select]
$ufGroup->id          = $ufGroupId;
With...

Code: [Select]
if (is_array($ufGroupId)) {
  $ufGroup->id = $ufGroupId[0];
} else {
  $ufGroup->id = $ufGroupId;
}

jbertolacci

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
Re: Event Online Registration Profile
March 05, 2012, 03:09:48 pm
Do you have the patch or the issue which would contain that code?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Event Online Registration Profile
March 05, 2012, 03:14:23 pm
I believe this is fixed in 4.1 - I diagnosed it & found that this

UPDATE uf_match SET is_active = 0 WHERE id = 1;

makes it go away

http://issues.civicrm.org/jira/browse/CRM-9653

It was fixed in 4.1 through other refactoring (ie. was already fixed in 4.1 by the time I filed the ticket)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: Event Online Registration Profile
March 05, 2012, 05:00:37 pm
@Eileen, thanks for the fix.
I'm on 4.1 and it doesn't seem to be fixed just yet...

Would it be helpful to you if I checked something out on my install or should I go ahead and try installing 4.1.1?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Event Online Registration Profile
March 05, 2012, 05:31:40 pm
Hmm - I didn't try replicating on 4.1 - I just took Yashi's word for it.

You could try the patch as described in here

http://issues.civicrm.org/jira/browse/CRM-9653
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: Event Online Registration Profile
March 05, 2012, 06:25:51 pm
Eileen, I've applied the path on top of 4.1.0 and that seems to work. Both of my profiles now appear. Thank you!

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: Event Online Registration Profile
March 05, 2012, 06:55:05 pm
Eileen - in your query above and in the referenced bug, did you mean


UPDATE uf_match SET is_active = 0 WHERE id = 1;
 
or

UPDATE uf_group SET is_active = 0 WHERE id = 1;

Thanks,

Aaron

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Online Registration Profile

This forum was archived on 2017-11-26.