Silex doctrine and debugging

I m actually building an application with silex and doctrine.

Actually, in developpment mode in works great and I can access my database.

The fact is now I changed my db information to match with my OVH mysql.

Now, when I try to start my application on my OVH domain, I got

Whoops, looks like something went wrong.

And nothing else.

I don't know at all how to get more informations about it and can't find any working solution to log the detail of the failing state.

Thanks for you help


In order to make it works, enable the debug :

use Symfony\Component\HttpKernel\Debug\ErrorHandler;
use Symfony\Component\HttpKernel\Debug\ExceptionHandler;

// Set the error handling
ini_set('display_errors', 1);


if ('cli' !== php_sapi_name()) {

$app = new Silex\Application();
$app['debug'] = true


You can also catch exceptions like follows :

$app->error(function(\Exception $e) use ($app) {
    print $e->getMessage(); // Do something with $e

Need Your Help

display table header on each page print

html css print-css

I have my table header contents which I want to print on each page on over flowing table body data. I tried thead display: table-header-group but it doesn't seem to help.Any suggestions on how to m...