Answers.Body: <p>FURTHER UPDATE:</p>
  <p>CiviCRM 5.67.0 solves the various issues that I found. Thanks very much for fixing.</p>
  <p>Chris</p>
  <p>UPDATE:  This was originally a &quot;me too&quot; comment but now is a partial answer.</p>
  <p>The problem occurs here:</p>
  <p>wp-content/plugins/civicrm/civicrm/vendor/pear/log/php-8.1-strftime.php</p>
  <p>The problem seems to be that PHP 8.1.25 (and 8.2.12 I think) throw an exception if $locale is invalid for IntlDateFormatter()
  <a href="https://github.com/php/php-src/issues/12561" rel="nofollow noreferrer">https://github.com/php/php-src/issues/12561</a></p>
  <p>For me, $locale was coming through as &quot;C&quot; which is invalid.
  For now, I've added in this extra line 104:</p>
  <p>$locale = &quot;en_GB&quot;;</p>
  <p>This gets the Send Scheduled Reminders job working - and hopefully some other things that I'm told weren't working, such as some event booking.</p>
  <p>I did previously try the CiviCRM 5.66.2 release but that didn't help.</p>
  <p>Is there some setting within CiviCRM (or the server) which I need to set to get the $locale coming through properly?
  I'd recommend that the code be updated so that it can cope with a duff $locale.</p>
  <p>Chris</p>
  <hr />
  <p>I am seeing the same Send Scheduled Reminders job error on a live site since yesterday morning on CiviCRM 5.65.2. And I get the same error on a test site when I try today to upgrade from 5.65.2 to 5.66.1:</p>
  <p>datefmt_create invalid locale: U_ILLEGAL_ARGUMENT_ERROR</p>
  <p>Test site error report:
  WordPress version 6.3.2
  Active theme: Twenty Seventeen (version 3.3)
  Current plugin: CiviCRM (version 5.66.1)
  PHP version 8.1.25</p>
  <p>(I've reverted the test site.)</p>
  <p>Can anyone suggest a fix to help me upgrade - which will hopefully fix the problem?</p>
  <p>Thanks in advance, Chris</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-29T20:20:00.613Z
Answers.Text: This seems to be a 'me too' Comment rather than an Answer.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-01T18:43:10.593Z
Answers.Text: thanks for making this more of an Answer
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-05T14:38:56.983Z
Answers.Text: I've now updated civicrm to 5.67.0 and reverted PHP back to 8.1.25.  Everything now seems back to normal.  Scheduled jobs and scheduled reminders are working fine.  Thank you @chriscant  for your help in this.
Answers.UserDisplayName: peterb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-29T10:09:55.553Z
Answers.LastActivityDate: 2023-11-02T18:36:08.903Z
Answers.LastEditDate: 2023-11-02T18:36:08.903Z
Answers.UserDisplayName: chriscant
Answers.Body: <p>Upgrading to 5.66.1 appears to fix this issue, <a href="https://lab.civicrm.org/dev/core/-/issues/4739" rel="nofollow noreferrer">see here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-29T10:01:13.570Z
Answers.Text: Thank you Lars SG for this information.  I have temporarily gone back to using PHP v 8.0 and the issue I've been experiencing now seems to have gone away. I will try updating to CiviCRM v 5.66.1 shortly.
Answers.UserDisplayName: peterb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-05T14:39:21.647Z
Answers.Text: I've now updated civicrm to 5.67.0 and reverted PHP back to 8.1.25.  Everything now seems back to normal.  Scheduled jobs and scheduled reminders are working fine.  Thank you  @Lars SG for your help in this.
Answers.UserDisplayName: peterb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-28T17:49:26.500Z
Answers.LastActivityDate: 2023-10-28T17:49:26.500Z
Answers.UserDisplayName: Lars SG
Body: <p>CiviCRM v 5.66.0
  Wordpress v 6.3.2
  PHP V 8.1.25</p>
  <p>Yesterday, all scheduled jobs were working fine but today Scheduled Reminders and Stripe: Cleanup  have both stopped working with the following error logs</p>
  <p>Stripe:  Stripe: Cleanup    Finished execution of Stripe: Cleanup with result: Failure, Error message: datefmt_create: invalid locale: U_ILLEGAL_ARGUMENT_ERROR</p>
  <p>Scheduled Reminders:  Send Scheduled Reminders  Finished execution of Send Scheduled Reminders with result: Failure, Error message: datefmt_create: invalid locale: U_ILLEGAL_ARGUMENT_ERROR</p>
  <p>Both have the same error message.  Could anyone please help me in discovering what may have caused these errors?</p>
  <p>There's nothing in ConfigAndLog   All other jobs are working fine so CRON job seems OK</p>
  
Tags: <wordpress><scheduled-reminders><stripe><scheduled-job>
Title: Scheduled Jobs stopped working
ThreadText: # Scheduled Jobs stopped working
  
  (Asked by: username_0 on 2023-10-26)
  
  CiviCRM v 5.66.0
  Wordpress v 6.3.2
  PHP V 8.1.25
  
  Yesterday, all scheduled jobs were working fine but today Scheduled Reminders and Stripe: Cleanup have both stopped working with the following error logs
  
  Stripe: Stripe: Cleanup Finished execution of Stripe: Cleanup with result: Failure, Error message: datefmt\_create: invalid locale: U\_ILLEGAL\_ARGUMENT\_ERROR
  
  Scheduled Reminders: Send Scheduled Reminders Finished execution of Send Scheduled Reminders with result: Failure, Error message: datefmt\_create: invalid locale: U\_ILLEGAL\_ARGUMENT\_ERROR
  
  Both have the same error message. Could anyone please help me in discovering what may have caused these errors?
  
  There's nothing in ConfigAndLog All other jobs are working fine so CRON job seems OK
  
  **Tags:** wordpress, scheduled-reminders, stripe, scheduled-job
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2023-10-29. Score: 2
  
  FURTHER UPDATE:
  
  CiviCRM 5.67.0 solves the various issues that I found. Thanks very much for fixing.
  
  Chris
  
  UPDATE: This was originally a "me too" comment but now is a partial answer.
  
  The problem occurs here:
  
  wp-content/plugins/civicrm/civicrm/vendor/pear/log/php-8.1-strftime.php
  
  The problem seems to be that PHP 8.1.25 (and 8.2.12 I think) throw an exception if $locale is invalid for IntlDateFormatter()
  <https://github.com/php/php-src/issues/12561>
  
  For me, $locale was coming through as "C" which is invalid.
  For now, I've added in this extra line 104:
  
  $locale = "en\_GB";
  
  This gets the Send Scheduled Reminders job working - and hopefully some other things that I'm told weren't working, such as some event booking.
  
  I did previously try the CiviCRM 5.66.2 release but that didn't help.
  
  Is there some setting within CiviCRM (or the server) which I need to set to get the $locale coming through properly?
  I'd recommend that the code be updated so that it can cope with a duff $locale.
  
  Chris
  
  ---
  
  I am seeing the same Send Scheduled Reminders job error on a live site since yesterday morning on CiviCRM 5.65.2. And I get the same error on a test site when I try today to upgrade from 5.65.2 to 5.66.1:
  
  datefmt\_create invalid locale: U\_ILLEGAL\_ARGUMENT\_ERROR
  
  Test site error report:
  WordPress version 6.3.2
  Active theme: Twenty Seventeen (version 3.3)
  Current plugin: CiviCRM (version 5.66.1)
  PHP version 8.1.25
  
  (I've reverted the test site.)
  
  Can anyone suggest a fix to help me upgrade - which will hopefully fix the problem?
  
  Thanks in advance, Chris
  
  > **Comments:**
  > **username_2**: This seems to be a 'me too' Comment rather than an Answer.  
  > **username_2**: thanks for making this more of an Answer  
  > **username_0**: I've now updated civicrm to 5.67.0 and reverted PHP back to 8.1.25.  Everything now seems back to normal.  Scheduled jobs and scheduled reminders are working fine.  Thank you @username_1  for your help in this.  
  
  ---
  
  ### Answer by username_3 on 2023-10-28. Score: 1
  
  Upgrading to 5.66.1 appears to fix this issue, [see here](https://lab.civicrm.org/dev/core/-/issues/4739).
  
  > **Comments:**
  > **username_0**: Thank you username_3 for this information.  I have temporarily gone back to using PHP v 8.0 and the issue I've been experiencing now seems to have gone away. I will try updating to CiviCRM v 5.66.1 shortly.  
  > **username_0**: I've now updated civicrm to 5.67.0 and reverted PHP back to 8.1.25.  Everything now seems back to normal.  Scheduled jobs and scheduled reminders are working fine.  Thank you  @username_3 for your help in this.  
  
  ---
  
  