2

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) but I'm on a Joomla system. My problem seems most similar to this one -- 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.

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)

| improve this answer | |
  • 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 :-) – minbori Dec 6 '19 at 11:08
  • Ah found it in the CiviEvent component settings. We are most definitely NOT using the cart function -- it is disabled. – minbori Dec 6 '19 at 11:13
  • 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. – minbori Dec 11 '19 at 11:21

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.