1

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!

1
  • Is email setting working correctly? - Also did you manage to find any PHP error log or Civicrm error log which will help a lot (The above notice and warning is of no use) May 30, 2019 at 14:37

1 Answer 1

2

So after much digging, I found it was due to Civi trying and failing to send an PDF receipt.

After disabling this in Administer > System Settings > Misc (civicrm/admin/setting/misc?reset=1), the error resolved, the 500 Internal Server Error disappeared and the emails started sending with the email receipt instead of the PDF.

Attach PDF copy to receipts: No

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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