Answers.Body: <p>The error is due to call to the protected function <code>getRegistrationContactID()</code> in <code>CRM_Event_Form_Registration_AdditionalParticipant</code> class for multiple event participants registration.  </p>
  
  <p>The issue got resolved in my installation (civicrm 4.7.19) after changing the access control of the function <code>getRegistrationContactID()</code> from <code>protected</code> to <code>public</code>.</p>
  
  <p>The file location is <code>civicrm-module/CRM/Event/Form/Registration.php</code> </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-03T01:52:51.943Z
Answers.Text: I hate to sound like an a** but how would I make that change?
Answers.UserDisplayName: Taylor Pyles
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-07T03:26:24.533Z
Answers.Text: The file location in the above is incorrect for a Drupal site and should be civicrm/CRM/Event/Form/Registration/Register.php. If I make the change from protected to public in that file it seems to have successfully resolved the issue.
Answers.UserDisplayName: Martin Fuggle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-08T00:27:28.533Z
Answers.Text: I am having the same issue on WP 4.7.5 and CiviCRM 4.7.19
  
  PHP error is Call to protected method CRM_Event_Form_Registration_Register::getRegistrationContactID() from context 'CRM_Event_Form_Registration_AdditionalParticipant' in /usr/home/mysite/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Registration/AdditionalParticipant.php on line 613
Answers.UserDisplayName: PeteRoss
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-02T06:20:14.350Z
Answers.LastActivityDate: 2017-06-05T09:39:06.183Z
Answers.LastEditDate: 2017-06-05T09:39:06.183Z
Answers.UserDisplayName: Srilakshmi
Body: <p>I'm running into an issue for event registrations where multiple participants can be registered.  The first registrant goes through fine, however, when submitting registration #2, the following error occurs:</p>
  
  <p>Call to protected method CRM_Event_Form_Registration_Register::getRegistrationContactID() from context 'CRM_Event_Form_Registration_AdditionalParticipant'</p>
  
  <p>I am running Joomla 3.7.2 and Civicrm 4.7.19 </p>
  
  <p>Thoughts on where to go?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-07T02:55:09.257Z
Comments.Text: I am using Drupal 7.54 and CiviCRM 4.7.19 and am getting an error when the second participant is entered and then completed. The backtrace can be seen in this link:
  [link](https://docs.google.com/document/d/1zyUcOs30vtZuvQaKUuAh8FjiGbovpQW0B2SyWjwRPfE/edit?usp=sharing)
  Is anyone else seeing this issue?
Comments.UserDisplayName: Martin Fuggle
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-05T20:02:13.703Z
Comments.Text: Has anyone reported this issue on issues.civicrm.org? Instead of hacking Civi core, it's better fix this properly.
Comments.UserDisplayName: herb
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-05T20:05:45.140Z
Comments.Text: I'm getting the same error on Drupal 7.x and Civi 4.7.19
Comments.UserDisplayName: herb
Tags: <civievent>
Title: Error during registration for multiple participants
ThreadText: # Error during registration for multiple participants
  
  (Asked by: username_0 on 2017-05-30)
  
  I'm running into an issue for event registrations where multiple participants can be registered. The first registrant goes through fine, however, when submitting registration #2, the following error occurs:
  
  Call to protected method CRM\_Event\_Form\_Registration\_Register::getRegistrationContactID() from context 'CRM\_Event\_Form\_Registration\_AdditionalParticipant'
  
  I am running Joomla 3.7.2 and Civicrm 4.7.19
  
  Thoughts on where to go?
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: I am using Drupal 7.54 and CiviCRM 4.7.19 and am getting an error when the second participant is entered and then completed. The backtrace can be seen in this link: [link](https://docs.google.com/document/d/1zyUcOs30vtZuvQaKUuAh8FjiGbovpQW0B2SyWjwRPfE/edit?usp=sharing) Is anyone else seeing this issue?  
  > **username_2**: Has anyone reported this issue on issues.civicrm.org? Instead of hacking Civi core, it's better fix this properly.  
  > **username_2**: I'm getting the same error on Drupal 7.x and Civi 4.7.19  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2017-06-02. Score: 1
  
  The error is due to call to the protected function `getRegistrationContactID()` in `CRM_Event_Form_Registration_AdditionalParticipant` class for multiple event participants registration.
  
  The issue got resolved in my installation (civicrm 4.7.19) after changing the access control of the function `getRegistrationContactID()` from `protected` to `public`.
  
  The file location is `civicrm-module/CRM/Event/Form/Registration.php`
  
  > **Comments:**
  > **username_0**: I hate to sound like an a** but how would I make that change?  
  > **username_1**: The file location in the above is incorrect for a Drupal site and should be civicrm/CRM/Event/Form/Registration/Register.php. If I make the change from protected to public in that file it seems to have successfully resolved the issue.  
  > **username_4**: I am having the same issue on WP 4.7.5 and CiviCRM 4.7.19  PHP error is Call to protected method CRM_Event_Form_Registration_Register::getRegistrationContactID() from context 'CRM_Event_Form_Registration_AdditionalParticipant' in /usr/home/mysite/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Registration/AdditionalParticipant.php on line 613  
  
  ---
  
  