No valid database connection

Error: headers already sent in intercept.jdatabasemysql.php on line 77.
Stopped at line 712 in joomsef.php