Question

I am asked to maintain a website but the develop environment hasn't been set up properly. First it was redirecting all requests to the production server but after fixing that all I get is response 500.

The application is set up in IIS to show detailed error messages remote and local(under error pages).

The index.php has the following content:

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', false);
sfContext::createInstance($configuration)->dispatch();
?>

/apps/frontend/config/settings.yml for dev:

dev:
  .settings:
    error_reporting:        <?php echo (E_ALL | E_STRICT)."\n" ?>

I would expect some sort of error reporting here instead of a 500 response. Is there something I have forgotten to do?

Was it helpful?

Solution

Change your debug flag to true here:

$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', false);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top