As Joy pointed out, right now ClassicPress v1.5.0-RC1 supports PHP 8.0. I would recommend trying this version with PHP 8.0, not 8.1, with your theme. See if that fixes the issue or not. You can find instructions on how to upgrade to 1.5.0-RC1 here, it’s pre-release version for testing only: