This is the line of code that is failing.
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];
This is from a fifteen-year-old wordpress theme. Honestly, I don't know what it means. Since I don't know what it means, I don't know why it's wrong, and that means I don't know how to fix it. I guess I'm going to have to learn enough PHP to make this compatible with PHP 8.