PHP-warning in post-template.php and no loading content on pages

The problem was that the loop related code had been removed from the template file by a mistake without me knowing. I had to add this back in:

<?php if (have_posts()): while (have_posts()) : the_post(); ?>

and

<?php else: ?>

        <h2><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>

<?php endif; ?>