0

On my wordpress civicrm page, we use event registration and also allow wordpress user creation during event registration. Filling out the registration is working and the final event registraion confirm page loads. When submitting this confirm page the form POST is being executed and redirects to the event thank you page. When loading this event thank you page I receive a HTTP 500 with session expired.

Nevertheless, the person gets registered successfully and also receives confirmation email about successful registration. It is "just" the event thank you page is not loading...

In case any already registered wordpress user registers for the same event everything runs smoothly...

I already checked persistent php session handling, reverse proxy or cdn caching but it did not help.

civicrm error log details:

trace: {
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:796 {
    CRM_Core_Controller->invalidKeyCommon()
    › public function invalidKeyCommon() {
    ›   throw new CRM_Core_Exception(
    ›     ts("Sorry, your session has expired. Please reload the page or go back and try again."), 419, [ts("Could not find a valid session key.")]);
  }
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:817 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Event/Controller/Registration.php:46 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:311 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:187 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Event/Controller/Registration.php:25 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:274 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:73 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:38 { …}
  /var/www/html/wp-content/plugins/civicrm/civicrm.php:1316 { …}
  /var/www/html/wp-content/plugins/civicrm/includes/civicrm.basepage.php:425 { …}
  /var/www/html/wp-includes/class-wp-hook.php:324 { …}
  /var/www/html/wp-includes/class-wp-hook.php:348 { …}
  /var/www/html/wp-includes/plugin.php:565 { …}
  /var/www/html/wp-includes/class-wp.php:835 { …}
  /var/www/html/wp-includes/functions.php:1342 { …}
  /var/www/html/wp-blog-header.php:16 { …}
  /var/www/html/index.php:17 { …}
}

Edit [28.11.2025 00:09]: here my session get reset

3
  • The expired session error is typically what comes after the real issue. Take a look for earlier errors in various logs. I wonder if the error is happening with the new contact creation? Or with contact matching? See if you can distinguish between the two cases. Commented Nov 27 at 20:19
  • I am debugging this issue for hours... All in all the php session stayed the same, but the key is invalid, because the qfPrivateKey of the session has changed. This has changed, because the session got reset and a new qfPrivateKey was created. The session got reset, because UfMatch tries to synchronize, but ufID and userSystemID are not matching anymore... Commented Nov 27 at 22:46
  • The ufmatch shouldn't be an issue for anonymous visitors??? Ah, unless this form is also creating a new user? Commented 8 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.