I am using CiviCRM version 5.13.4 on Drupal 7. PHP version is 7.1.
When trying to sign up for an event, once the continue button is clicked to confirm the registration, the page loads for a minute or two and then returns a 500 Internal Server Error.
The person does get signed up for the event but they don't receive a confirmation email which is causing issues as they try and register multiple times which creates duplicate bookings.
Before clicking the continue button, this warning appears:
Warning: A non-numeric value encountered in CRM_Event_Form_Registration_Confirm->buildQuickForm() (line 264 of /public_html/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php)
We are also getting this notice a lot although I'm not certain it's related:
Notice: Undefined offset: 0 in CRM_Grant_BAO_Query::where() (line 116 of /public_html/sites/all/modules/civicrm/CRM/Grant/BAO/Query.php).
My guess is the first warning is the one to take notice of so I've put a little bit of the code below that may be of use which includes line 264 for reference (the middle line in the snippet):
/*CRM-16320 */
$individual[$k]['totalAmtWithTax'] = $this->_amount[$k]['amount'];
$individual[$k]['totalTaxAmt'] = $individualTaxAmount + $v['tax_amount'];
$this->_totalAmount = $this->_totalAmount + $this->_amount[$k]['amount'];
if (!empty($v['is_primary'])) {
$this->set('primaryParticipantAmount', $this->_amount[$k]['amount']);
Any advice would be greatly appreciated, feel free to ask any follow up questions for clarification!