If one tries to load a theme template file directly, the following error message is displayed:
Fatal error: Call to undefined function get_header() in ...
and it goes on to list the full directory path to the wordpress install. This seems undesirable. How can I prevent it? Upon googling I found a suggestion to insert the following into wp-config.php:
error_reporting(0); @ini_set(‘display_errors’, 0);
Oddly, it did not work when I tested it.