index.php runs before secret.php, error settings weren't being set