I’ve put a copy of the header.php file here.
I just figured it out. The folder with the files was originally a password protected folder on the server and I still had the .htaccess file in the folder which was preventing the download of the files. Removing the .htaccess file fixed the problem.