Answers.Body: <p>I had a png-logo pasted as part of our HTML signature:
  data:image/png;base64
  The image pointed to an URL as well.</p>
  <p>Deleting it solved the problem for me - if anyone can guess why, please edit or comment.</p>
  <p>Now there is only one instead of a dozen of these alike error messages remaining for each run of scheduled reminders, which finally finish successfully.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-02T13:55:34.363Z
Answers.LastActivityDate: 2022-12-02T15:35:29.783Z
Answers.LastEditDate: 2022-12-02T15:35:29.783Z
Answers.UserDisplayName: ajasper
Body: <p>My send scheduled reminder cron job has been failing consistently.</p>
  <p>The log file shows about a dozen of these errors every time send scheduled reminders fails:</p>
  <pre><code>[warning] Deprecated function CRM_Utils_Token::getTokenDetails, use If you hit this in mailing code you should use flexmailer - otherwise use the token processor.
  CRM_Core_Error::deprecatedFunctionWarning
  CRM_Utils_Token::getTokenDetails
  ::gdpr_civicrm_tokenValues
  CRM_Utils_Hook::runHooks
  Array
  (
      [civi.tag] =&gt; deprecated
  )
  </code></pre>
  <p>I use flexmailer already. The mail fails when using simple tokens like {contact.first_name}, but also when deleting all tokens from the mail body.</p>
  <p>What could cause this behavior?</p>
  <p>getTokenDetails is not mentioned as deprecated in their <a href="https://doc.symbiotic.coop/dev/civicrm/v5.20/phpdoc/CRM_Utils_Token.html" rel="nofollow noreferrer">official documentation</a> other than some other functions of CRM_Utils_Token.</p>
  
Tags: <tokens><scheduled-reminders><cron-job><flexmailer>
Title: Send scheduled mailing fails due to deprecated function CRM_Utils_Token::getTokenDetails
ThreadText: # Send scheduled mailing fails due to deprecated function CRM_Utils_Token::getTokenDetails
  
  (Asked by: username_0 on 2022-12-02)
  
  My send scheduled reminder cron job has been failing consistently.
  The log file shows about a dozen of these errors every time send scheduled reminders fails:
  [warning] Deprecated function CRM_Utils_Token::getTokenDetails, use If you hit this in mailing code you should use flexmailer - otherwise use the token processor.
  CRM_Core_Error::deprecatedFunctionWarning
  CRM_Utils_Token::getTokenDetails
  ::gdpr_civicrm_tokenValues
  CRM_Utils_Hook::runHooks
  Array
  (
      [civi.tag] => deprecated
  )
  
  I use flexmailer already. The mail fails when using simple tokens like {contact.first_name}, but also when deleting all tokens from the mail body.
  What could cause this behavior?
  getTokenDetails is not mentioned as deprecated in their official documentation other than some other functions of CRM_Utils_Token.
  
  **Tags:** tokens, scheduled-reminders, cron-job, flexmailer
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-12-02. Score: 1 | Accepted answer
  
  I had a png-logo pasted as part of our HTML signature:
  data:image/png;base64
  The image pointed to an URL as well.
  
  Deleting it solved the problem for me - if anyone can guess why, please edit or comment.
  
  Now there is only one instead of a dozen of these alike error messages remaining for each run of scheduled reminders, which finally finish successfully.
  
  
  ---
  
  