Answers.Body: <p>Went into php.ini and replaced the session.save_path parameter from</p>
  
  <pre><code>/opt/alt/php71/var/lib/php/session
  </code></pre>
  
  <p>to</p>
  
  <pre><code>/path/to/your/homedir/tmp
  </code></pre>
  
  <p>And it looks like that's done the trick!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-31T04:03:20.387Z
Answers.LastActivityDate: 2019-01-31T04:03:20.387Z
Answers.UserDisplayName: josh
Body: <p>Using CiviCRM 5.7.2, using Drupal 7.61. </p>
  
  <p>We use CiviEvents and have registrations turned on and confirmation emails enabled. Over the last month a few users have reported not receiving confirmation emails and I was able to replicate this myself today.</p>
  
  <p>Essentially, the user fills in their details and then get a 500 error and no confirmation screen or confirmation email. However their registration pulls through on the back-end (I can see they registered for the event on their user on CiviCRM and I see them as a registrant on CiviEvent). But even though this is pulling through, it's not triggering the confirmation email to be sent to the registrant. </p>
  
  <p>It looks like this happens at random - has happened to about 4% of our recent registrants in the last month. It causes a lot of frustration on their end and a poor user experience so would love to work out why it happens and if there's anything I can do to fix this. </p>
  
  <p>Let me know if you need any more information or if this isn't clear.</p>
  
  <p>Cheers,</p>
  
  <p>EDIT: It just happened again. User gets redirected to [DOMAIN].com/civicrm/event/register. This happens after the "Confirm your registration details" screen.</p>
  
  <p>EDIT 2: These are the two errors I see in Drupal's Error Log</p>
  
  <pre><code>Warning: Unknown: Cannot call session save handler in a recursive manner in main() (line of ).
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: /opt/alt/php71/var/lib/php/session) in main() (line of ).
  </code></pre>
  
  <p>I have no idea what this means, can anyone assist?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-23T02:44:17.517Z
Comments.Text: I have just begun investigating such an error.  Unfortunately, it seems that you may have more info than I've got.  I will add that credit cards did process, but the event Notify CC addresses did not receive e-mails either.  Civi 5.8.2, WP 5.0.3, MariaDB, PHP7
Comments.UserDisplayName: G H
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-23T03:00:33.420Z
Comments.Text: what payment processors are you both using?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-23T03:23:06.697Z
Comments.Text: @petednz-fuzion using Paypal but this event doesn't have payment enabled
Comments.UserDisplayName: josh
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-23T09:45:58.927Z
Comments.Text: The 500 error should be getting logged somewhere, drupal watchdog logs or CiviCRM logs, or PHP error log.  Find out what is causing the 500 error and that's likely to give you a big clue where it is going wrong.
Comments.UserDisplayName: Matthew Wire
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-29T23:38:12.220Z
Comments.Text: Thanks @MatthewWire, I've just edited in the error messages I found in drupal watchdog logs. I have no idea how to interpret these though, can anyone help? Tried to do some research on it but wasn't able to find any relevant information.
Comments.UserDisplayName: josh
Tags: <civievent><email><confirmation>
Title: CiviEvents Confirmation email not being sent
ThreadText: # CiviEvents Confirmation email not being sent
  
  (Asked by: username_0 on 2019-01-23)
  
  Using CiviCRM 5.7.2, using Drupal 7.61. 
  We use CiviEvents and have registrations turned on and confirmation emails enabled. Over the last month a few users have reported not receiving confirmation emails and I was able to replicate this myself today.
  Essentially, the user fills in their details and then get a 500 error and no confirmation screen or confirmation email. However their registration pulls through on the back-end (I can see they registered for the event on their user on CiviCRM and I see them as a registrant on CiviEvent). But even though this is pulling through, it's not triggering the confirmation email to be sent to the registrant. 
  It looks like this happens at random - has happened to about 4% of our recent registrants in the last month. It causes a lot of frustration on their end and a poor user experience so would love to work out why it happens and if there's anything I can do to fix this. 
  Let me know if you need any more information or if this isn't clear.
  Cheers,
  EDIT: It just happened again. User gets redirected to [DOMAIN].com/civicrm/event/register. This happens after the "Confirm your registration details" screen.
  EDIT 2: These are the two errors I see in Drupal's Error Log
  Warning: Unknown: Cannot call session save handler in a recursive manner in main() (line of ).
  
  and
  Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: /opt/alt/php71/var/lib/php/session) in main() (line of ).
  
  I have no idea what this means, can anyone assist?
  
  **Tags:** civievent, email, confirmation
  
  > **Comments:**
  > **username_1**: I have just begun investigating such an error.  Unfortunately, it seems that you may have more info than I've got.  I will add that credit cards did process, but the event Notify CC addresses did not receive e-mails either.  Civi 5.8.2, WP 5.0.3, MariaDB, PHP7  
  > **username_2**: what payment processors are you both using?  
  > **username_0**: @petednz-fuzion using Paypal but this event doesn't have payment enabled  
  > **username_3**: The 500 error should be getting logged somewhere, drupal watchdog logs or CiviCRM logs, or PHP error log.  Find out what is causing the 500 error and that's likely to give you a big clue where it is going wrong.  
  > **username_0**: Thanks @MatthewWire, I've just edited in the error messages I found in drupal watchdog logs. I have no idea how to interpret these though, can anyone help? Tried to do some research on it but wasn't able to find any relevant information.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-01-31. Score: 1 | Accepted answer
  
  Went into php.ini and replaced the session.save_path parameter from
  /opt/alt/php71/var/lib/php/session
  
  to
  /path/to/your/homedir/tmp
  
  And it looks like that's done the trick!
  
  
  ---
  
  