Actually the error was in index.php