Answers.Body: <p>Thank you bgm, you got me on the right trail.  It was an email issue. It was angry that it could not email the confirmation for the event to the registrant.  The registrations were hitting the db as expected.</p>
  <p>Specifically the <strong>civicrm.settings.php</strong> file <strong>CIVCRM_CRED_KEYS</strong> entry did not match what was in the database in the <strong>civcrm_setting</strong> table, <strong>mailing_backend</strong> row, and <strong>Value</strong> field.  To make my life easy, I simply deleted the <strong>Value</strong> field data from the aforementioned in the database and reentered the email config data from the Administer | System Settings | Outbound Email menu.  All is well.  Thanks again.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-06T00:30:59.043Z
Answers.LastActivityDate: 2021-08-06T00:30:59.043Z
Answers.UserDisplayName: Tim
Body: <p>I recently upgraded to 5.39.0 on WP 5.8. When clicking <em>continue</em> from an event registration form at the <em>Confirm Your Registration Information</em> stage, I consistently get the sent to the url suffix <a href="https://example.com/civicrm/event/register/" rel="noreferrer">https://example.com/civicrm/event/register/</a> and have the yellow bar page with the message:</p>
  <blockquote>
  <p>Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
  Failed to find key by ID or tag (:ImagineAKeyHere:)</p>
  </blockquote>
  <p>The participant is successfully registered when looking in the events.  Also at other odd times that I have not discerned a pattern a black error box chimes in with</p>
  <blockquote>
  <p>Failed to find key by ID or tag (:ImagineSameKeyHere:)</p>
  </blockquote>
  <p>The baseURLs for CiviCRM and Wordpress are identical per the respective GUIs.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-05T15:21:48.577Z
Comments.Text: It seems to be related to a service that is using the new "Crypto Registry". Are you using an external mail server or service?
Comments.UserDisplayName: bgm
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-05T21:11:03.603Z
Comments.Text: Yes, I am using an external mail server.
Comments.UserDisplayName: Tim
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-05T22:26:17.940Z
Comments.Text: Spot on in the analysis.  Still not fixed but hot on the trail.  Thanks bgm.  An other intel would be much appreciated.
Comments.UserDisplayName: Tim
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-05T23:36:02.453Z
Comments.Text: Same error navigating to Administer|System Settings| Outbound email in Debug mode: 
  
  Civi\Crypto\Exception\CryptoException: Failed to find key by ID or tag (SomeKeyValue) in /var/www/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Crypto/CryptoToken.php on line 143
  Exception trace
  # Function Location
  0 Civi\Crypto\CryptoRegistry->findKey(Array) /var/www/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Crypto/CryptoToken.php:143
  1 Civi\Crypto\CryptoToken->decrypt(SameKeyValue) /var/www/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Setting/Smtp.php:259
  
  16 more lines
Comments.UserDisplayName: Tim
Tags: <wordpress><civievent><upgrade><error-page>
Title: Error: Failed to find key by ID or tag message
ThreadText: # Error: Failed to find key by ID or tag message
  
  (Asked by: username_0 on 2021-08-05)
  
  I recently upgraded to 5.39.0 on WP 5.8. When clicking *continue* from an event registration form at the *Confirm Your Registration Information* stage, I consistently get the sent to the url suffix <https://example.com/civicrm/event/register/> and have the yellow bar page with the message:
  
  > Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
  > Failed to find key by ID or tag (:ImagineAKeyHere:)
  
  The participant is successfully registered when looking in the events. Also at other odd times that I have not discerned a pattern a black error box chimes in with
  
  > Failed to find key by ID or tag (:ImagineSameKeyHere:)
  
  The baseURLs for CiviCRM and Wordpress are identical per the respective GUIs.
  
  **Tags:** wordpress, civievent, upgrade, error-page
  
  > **Comments:**
  > **username_1**: It seems to be related to a service that is using the new "Crypto Registry". Are you using an external mail server or service?  
  > **username_0**: Yes, I am using an external mail server.  
  > **username_0**: Spot on in the analysis.  Still not fixed but hot on the trail.  Thanks username_1.  An other intel would be much appreciated.  
  > **username_0**: Same error navigating to Administer|System Settings| Outbound email in Debug mode:   Civi\Crypto\Exception\CryptoException: Failed to find key by ID or tag (SomeKeyValue) in /var/www/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Crypto/CryptoToken.php on line 143 Exception trace # Function Location 0 Civi\Crypto\CryptoRegistry->findKey(Array) /var/www/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Crypto/CryptoToken.php:143 1 Civi\Crypto\CryptoToken->decrypt(SameKeyValue) /var/www/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Setting/Smtp.php:259  16 more lines  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-08-06. Score: 8 | Accepted answer
  
  Thank you username_1, you got me on the right trail. It was an email issue. It was angry that it could not email the confirmation for the event to the registrant. The registrations were hitting the db as expected.
  
  Specifically the **civicrm.settings.php** file **CIVCRM\_CRED\_KEYS** entry did not match what was in the database in the **civcrm\_setting** table, **mailing\_backend** row, and **Value** field. To make my life easy, I simply deleted the **Value** field data from the aforementioned in the database and reentered the email config data from the Administer | System Settings | Outbound Email menu. All is well. Thanks again.
  
  
  ---
  
  