• Resolved eisa01

    (@eisa01)


    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

    (@eisa01)

    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 4 years, 8 months ago by eisa01. Reason: Improving code readability
Viewing 1 replies (of 1 total)

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