Internal server error 500 on DELETE method

Ok… I’m one step further…

I found that it’s in this part:

Not working:
$settings = require DIR . ‘./src/settings.php’;
$app = new \Slim\App([“settings” => $config]);

Working:
$app = new \Slim\App();

However… I need the settings, because my db connection info is in there:

<?php $config['displayErrorDetails'] = true; $config['debug'] = true; $config['addContentLengthHeader'] = false; $config['db']['host'] = "host"; $config['db']['user'] = "user"; $config['db']['pass'] = "pass"; $config['db']['dbname'] = "dbname"; ?>

Any tips?

And to be clear: GET methods don’t give any problem! I’m lost…