Including PHP files doesn’t work outside of Localhost

The correct way to load a PHP file in the theme directory is to use the locate_template function.

<?php locate_template(array('parts/block1.php'),true,false); ?>

The true makes it automatically require it. The false makes it not require_once it.