I got the same issue. Child Twenty Sixteen theme, local server and Media Library gone.
The origin of the problem was the functions.php file starting with “<?php” and no further line.
The solution I found was just add an empty line below that:
<?php
empty line here