I am currently experiencing an issue in a custom theme where if a form is submitted, in this case search or log in, a blank page is returned. I'm still able to log in just returns an empty page.

I checked the logs and see:
Cannot modify header information - headers already sent by (output started at /home/public_html/sites/all/themes/mytheme/template.php:3) in /home/public_html/includes/common.inc on line 345.

I have absolutely nothing in template.php so far but have a number of tpl files in the theme folder. Any suggestions on what I should be looking for which might be causing this error?

Comments

nevets’s picture

Since template.php is empty you might try removing it.

A wild guess is it is not actually empty but has <?php and ?> in it. If this is the case remove the ?>

David Vespoli’s picture

Your wild guess was right on. Can't believe I missed that. Thanks nevets