You will also get that error if your brackets are malformed
<?
function bad_bracket(){
if (1==1){
echo "hello there!";
echo " You are missing a bracket at the end of this function";
}
?>
<?
function good_bracket(){
if (1==1){
echo "hello there!";
echo " Everything is groovy!";
}
}
?>
Edit: Sorry. I see that you have already checked for that. Oh well. Maybe someone else can use this hint