Answers.Body: <p>That looks like a bug in the events component (possibly, specific to Joomla). The error is happening in the constructor of an object that is managing the event registration process (<a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/StateMachine/Registration.php" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/StateMachine/Registration.php</a>), presumably after the payment has occurred. It's failing to get the id of the event, which it normally will pick up from the url or as a hidden post value from a form.</p>
  
  <p>The numbering of the error line suggests that your CiviCRM version is not up to date, and I suspect you're using the event "cart" feature which is not as maintained as the standard event form/flow.</p>
  
  <p>Conclusion: probably not stripe related, but a CiviEvent error.</p>
  
  <p>Also, here's a similar post: <a href="https://civicrm.stackexchange.com/questions/28328/civievent-could-not-find-valid-value-for-id-drupal-7-6-1">CiviEvent: Could not find valid value for id (Drupal 7.6.1)</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-06T11:08:33.673Z
Answers.Text: Thanks Alan, that points me in some good directions.  I'm currently on Civi 5.18.2, but I'll update to 5.20 ASAP.  However, i'm not clear about the difference between the standard event flow and the "cart" feature?  As far as I know, i'm using the standard event flow.  And the link you gave me is the one I quoted in my original post -- it didn't seem to help me :-)
Answers.UserDisplayName: minbori
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-06T11:13:09.960Z
Answers.Text: Ah found it in the CiviEvent component settings. We are most definitely NOT using the cart function -- it is disabled.
Answers.UserDisplayName: minbori
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-11T11:21:00.483Z
Answers.Text: Still no explanation for this -- I've tried everything I can think of and can't trigger the error.  So far only two users have encountered this, and both times it was when using the Stripe payment processor.  Meanwhile waiting and watching with full logging on.
Answers.UserDisplayName: minbori
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-05T16:33:19.450Z
Answers.LastActivityDate: 2019-12-05T16:33:19.450Z
Answers.UserDisplayName: Alan Dixon
Body: <p>I'm on Joomla 3.19.13 with CiviCRM 5.18.2 and using the Stripe Payment Processor 6.2.2. </p>
  
  <p>This seems to be a problem popping up on Wordpress sites (<a href="https://civicrm.stackexchange.com/search?q=Could%20not%20find%20valid%20value%20for%20id">https://civicrm.stackexchange.com/search?q=Could+not+find+valid+value+for+id</a>) but I'm on a Joomla system.  My problem seems most similar to <a href="https://civicrm.stackexchange.com/questions/28328/civievent-could-not-find-valid-value-for-id-drupal-7-6-1">this one</a> -- but in my case the registration DOES NOT come through, but the credit card payment DOES go through the Stripe processor, without email, address, name, etc. Nightmare!</p>
  
  <p>Even worse, this seems to be an intermittent problem.  We've just opened this event registration a few days ago, and so far we have 20 successful registrations with payments processed as they should be. But 1 payment has gone through successfully without any registration data or identifying data in Stripe, and 6 or 7 of these "unknown" Stripe payments appear to be stuck in the "Uncaptured" stage in the Stripe system.</p>
  
  <p>I've found multiple instances in the CiviCRM logs like this:</p>
  
  <pre><code>Nov 30 23:13:41  [error] $Fatal Error Details = Array
  (
      [message] =&gt; Could not find valid value for id
      [code] =&gt; 
  )
  </code></pre>
  
  <p>Tail end of backtrace like this:</p>
  
  <pre><code>Nov 30 23:13:41  [debug] $backTrace = #0 /home/fawcoho/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(385): CRM_Core_Error::backtrace("backTrace", TRUE)
  -1 /home/fawcoho/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Request.php(121): CRM_Core_Error::fatal("Could not find valid value for id")
  -2 /home/fawcoho/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/StateMachine/Registration.php(52): CRM_Utils_Request::retrieve("id", "Positive", Object(CRM_Event_Controller_Registration), TRUE)
  </code></pre>
  
  <p>Any troubleshooting ideas welcome -- Stripe has already confirmed that for these incorrect payments they are receiving the credit card info (number, expiry, CVC) but not any other identifying information.  </p>
  
Tags: <civievent><payment-processor><stripe><online-registration>
Title: Stripe processor: payment going through but registration is not! "Could not find valid value for id"
ThreadText: # Stripe processor: payment going through but registration is not! "Could not find valid value for id"
  
  (Asked by: username_0 on 2019-12-05)
  
  I'm on Joomla 3.19.13 with CiviCRM 5.18.2 and using the Stripe Payment Processor 6.2.2.
  
  This seems to be a problem popping up on Wordpress sites ([https://civicrm.stackexchange.com/search?q=Could+not+find+valid+value+for+id](https://civicrm.stackexchange.com/search?q=Could%20not%20find%20valid%20value%20for%20id)) but I'm on a Joomla system. My problem seems most similar to [this one](https://civicrm.stackexchange.com/questions/28328/civievent-could-not-find-valid-value-for-id-drupal-7-6-1) -- but in my case the registration DOES NOT come through, but the credit card payment DOES go through the Stripe processor, without email, address, name, etc. Nightmare!
  
  Even worse, this seems to be an intermittent problem. We've just opened this event registration a few days ago, and so far we have 20 successful registrations with payments processed as they should be. But 1 payment has gone through successfully without any registration data or identifying data in Stripe, and 6 or 7 of these "unknown" Stripe payments appear to be stuck in the "Uncaptured" stage in the Stripe system.
  
  I've found multiple instances in the CiviCRM logs like this:
  
  ```
  Nov 30 23:13:41  [error] $Fatal Error Details = Array
  (
      [message] => Could not find valid value for id
      [code] => 
  )
  
  ```
  
  Tail end of backtrace like this:
  
  ```
  Nov 30 23:13:41  [debug] $backTrace = #0 /home/fawcoho/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(385): CRM_Core_Error::backtrace("backTrace", TRUE)
  -1 /home/fawcoho/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Request.php(121): CRM_Core_Error::fatal("Could not find valid value for id")
  -2 /home/fawcoho/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/StateMachine/Registration.php(52): CRM_Utils_Request::retrieve("id", "Positive", Object(CRM_Event_Controller_Registration), TRUE)
  
  ```
  
  Any troubleshooting ideas welcome -- Stripe has already confirmed that for these incorrect payments they are receiving the credit card info (number, expiry, CVC) but not any other identifying information.
  
  **Tags:** civievent, payment-processor, stripe, online-registration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-05. Score: 2
  
  That looks like a bug in the events component (possibly, specific to Joomla). The error is happening in the constructor of an object that is managing the event registration process (<https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/StateMachine/Registration.php>), presumably after the payment has occurred. It's failing to get the id of the event, which it normally will pick up from the url or as a hidden post value from a form.
  
  The numbering of the error line suggests that your CiviCRM version is not up to date, and I suspect you're using the event "cart" feature which is not as maintained as the standard event form/flow.
  
  Conclusion: probably not stripe related, but a CiviEvent error.
  
  Also, here's a similar post: [CiviEvent: Could not find valid value for id (Drupal 7.6.1)](https://civicrm.stackexchange.com/questions/28328/civievent-could-not-find-valid-value-for-id-drupal-7-6-1)
  
  > **Comments:**
  > **username_0**: Thanks username_1, that points me in some good directions.  I'm currently on Civi 5.18.2, but I'll update to 5.20 ASAP.  However, i'm not clear about the difference between the standard event flow and the "cart" feature?  As far as I know, i'm using the standard event flow.  And the link you gave me is the one I quoted in my original post -- it didn't seem to help me :-)  
  > **username_0**: Ah found it in the CiviEvent component settings. We are most definitely NOT using the cart function -- it is disabled.  
  > **username_0**: Still no explanation for this -- I've tried everything I can think of and can't trigger the error.  So far only two users have encountered this, and both times it was when using the Stripe payment processor.  Meanwhile waiting and watching with full logging on.  
  
  ---
  
  