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. Cannot decrypt token. Invalid format. Return to home page.
I have installed the SparkPost extension for CiviCRM 5.39.0 on Drupal 7.82. I have ensured that the installation steps 1, 2 and 3 here are complete. When attempting to follow step four, going to Administer > System Settings > Outgoing mail (SparkPost) I receive the above error on the screen.
I have cleared caches and double-checked paths.
Google search shows exactly one post with this verbiage but I am not able to figure out the relationship between that one issue and this: https://lab.civicrm.org/dev/core/-/issues/2563. It only comes up here as part of the exceptions thrown verbiage in the codebase.
Note: I am working on getting CiviCRM updated, but since CiviSMTP is kaput by Aug 1, 2022, I was hoping that updating CiviCRM was not the solution.
Please let me know what else I can try, thank you!
Jul 31 22:09:44 [error]
$Fatal Error Details = array:3 [
"message" => "Cannot decrypt token. Invalid format."
"code" => null
"exception" => Civi\Crypto\Exception\CryptoException {#1368
-errorData: array:1 [
"error_code" => 0
]
#cause: null
-_trace: null
#message: "Cannot decrypt token. Invalid format."
#code: 0
#file: "/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/Civi/Crypto/CryptoToken.php"
#line: 206
trace: {
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/Civi/Crypto/CryptoToken.php:206 {
› default:
› throw new CryptoException("Cannot decrypt token. Invalid format.");
› }
}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/Civi/Crypto/CryptoToken.php:141 { …}
/var/www/html/fosterclub/docroot/sites/default/files/civicrm/ext/com.cividesk.email.sparkpost/CRM/Sparkpost.php:54 { …}
/var/www/html/fosterclub/docroot/sites/default/files/civicrm/ext/com.cividesk.email.sparkpost/CRM/Admin/Form/Setting/Sparkpost.php:64 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Form.php:644 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/CRM/Core/QuickForm/Action/Display.php:76 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Controller.php:352 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/CRM/Utils/Wrapper.php:98 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php:286 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php:69 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php:36 { …}
/var/www/html/fosterclub/docroot/sites/all/modules/contrib/civicrm/drupal/civicrm.module:458 { …}
/var/www/html/fosterclub/docroot/includes/menu.inc:527 { …}
/var/www/html/fosterclub/docroot/index.php:21 { …}
}
}
]