Title: Incompatible with PHP 8
Last modified: May 2, 2021

---

# Incompatible with PHP 8

 *  Resolved [eisa01](https://wordpress.org/support/users/eisa01/)
 * (@eisa01)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-3/)
 * Just a note that the “Default” theme is incompatible with PHP 8
 * I guess those of us who have archived blogs we keep online might have to upgrade
   to a newer theme, although that might lose the feel of our archived blogs
 * Have anyone looked into upgrading the default theme?
 * This is the error that pops up, but I assume this is just the first of many 🙂
   `
   An error of type E_COMPILE_ERROR was caused in line 105 of the file /wp-content/
   themes/roadtrip/functions.php. Error message: Array and string offset access 
   syntax with curly braces is no longer supported`

Viewing 1 replies (of 1 total)

 *  Thread Starter [eisa01](https://wordpress.org/support/users/eisa01/)
 * (@eisa01)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-3/#post-14389351)
 * That was actually the only change necessary
 * In the current Default theme it’s on line 110 and 111
 *     ```
       $uc = ( strlen($uc[0]) == 3 ) ? $uc[0][0].$uc[0][0].$uc[0][1].$uc[0][1].$uc[0][2].$uc[0][2] : $uc[0];
       $lc = ( strlen($lc[0]) == 3 ) ? $lc[0][0].$lc[0][0].$lc[0][1].$lc[0][1].$lc[0][2].$lc[0][2] : $lc[0];
       ```
   
    -  This reply was modified 5 years, 1 month ago by [eisa01](https://wordpress.org/support/users/eisa01/).
      Reason: Improving code readability

Viewing 1 replies (of 1 total)

The topic ‘Incompatible with PHP 8’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/default/1.7.2/screenshot.png)
 * Default
 * [Support Threads](https://wordpress.org/support/theme/default/)
 * [Active Topics](https://wordpress.org/support/theme/default/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/default/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/default/reviews/)

## Tags

 * [Themes](https://wordpress.org/support/topic-tag/themes/)

 * 1 reply
 * 1 participant
 * Last reply from: [eisa01](https://wordpress.org/support/users/eisa01/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-3/#post-14389351)
 * Status: resolved