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?

  • 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 Is anyone else seeing this issue? Jun 7 '17 at 2:55
  • Has anyone reported this issue on issues.civicrm.org? Instead of hacking Civi core, it's better fix this properly.
    – herb
    Jul 5 '17 at 20:02
  • I'm getting the same error on Drupal 7.x and Civi 4.7.19
    – herb
    Jul 5 '17 at 20:05

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

  • I hate to sound like an a** but how would I make that change? Jun 3 '17 at 1:52
  • 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. Jun 7 '17 at 3:26
  • 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
    – PeteRoss
    Jun 8 '17 at 0:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.