WordPress theme index.php not working because it’s the WordPress file system does not match, here is the solution, it’s just a simple thing to do. WordPress used the file structure
Fixed or solved problems on WordPress Uncaught ValueError: Unknown format specifier “C” in /home/ public_html/wp-includes/nav-menu-template.php:277 Uncaught ValueError: Unknown format