verrrrrry weird ...
some questions:
* you wouldn't have output buffering disable in php.ini by any chance?
* can you check your phperror.log for any relevant entries?
* could you, ever so briefly, test with a default wordpress theme (twentyfifteen or -fourteen for example)?
frank