setta in php.ini l'error reporting su E ALL in modo che almeno in fase di progettazione questi stupidi errori li noti subito