Answers.Body: <p>There hasn't been a release for fancytokens in a while but as a workaround you can just edit that fancytokens.civix.php file and change the <code>{0}</code> to <code>[0]</code> on line 149.</p>
  <p>For the other one just remove line 596 from your civicrm.settings.php. There was a pre-upgrade notice in 5.62 about it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-28T23:31:27.743Z
Answers.LastActivityDate: 2023-11-28T23:31:27.743Z
Answers.UserDisplayName: Demerit
Body: <p>I am running CIVICRM  on WordPress 6.4.1 with PHP 7.4.  Upgraded both platforms to the latest versions.  After changing php version from 7.4 to 8.1, I get a WP critical error.  After enabling WP debug, I get the following message.</p>
  <p>Any idea on how to correct this?</p>
  <p>Deprecated: auto_detect_line_endings is deprecated in ..../wp-content/uploads/civicrm/civicrm.settings.php on line 596</p>
  <p>Fatal error: Array and string offset access syntax with curly braces is no longer supported in ..../wp-content/uploads/civicrm/ext/com.pogstone.fancytokens/fancytokens.civix.php on line 149
  There has been a critical error on this website. Please check your site admin email inbox for instructions.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-11-30T15:24:49.913Z
Comments.Text: Beautiful.  It worked.  Thank you so much!!!
Comments.UserDisplayName: Association K
Tags: <wordpress><php>
Title: CIVICRM WP critical error after migrating to PHP 8.1
ThreadText: # CIVICRM WP critical error after migrating to PHP 8.1
  
  (Asked by: username_0 on 2023-11-28)
  
  I am running CIVICRM on WordPress 6.4.1 with PHP 7.4. Upgraded both platforms to the latest versions. After changing php version from 7.4 to 8.1, I get a WP critical error. After enabling WP debug, I get the following message.
  
  Any idea on how to correct this?
  
  Deprecated: auto\_detect\_line\_endings is deprecated in ..../wp-content/uploads/civicrm/civicrm.settings.php on line 596
  
  Fatal error: Array and string offset access syntax with curly braces is no longer supported in ..../wp-content/uploads/civicrm/ext/com.pogstone.fancytokens/fancytokens.civix.php on line 149
  There has been a critical error on this website. Please check your site admin email inbox for instructions.
  
  **Tags:** wordpress, php
  
  > **Comments:**
  > **username_0**: Beautiful.  It worked.  Thank you so much!!!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-11-28. Score: 2
  
  There hasn't been a release for fancytokens in a while but as a workaround you can just edit that fancytokens.civix.php file and change the `{0}` to `[0]` on line 149.
  
  For the other one just remove line 596 from your civicrm.settings.php. There was a pre-upgrade notice in 5.62 about it.
  
  
  ---
  
  