Skip to content

Instantly share code, notes, and snippets.

@jacine
Created April 12, 2016 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacine/6f32668d6276873b49dde5d16d3112b7 to your computer and use it in GitHub Desktop.
Save jacine/6f32668d6276873b49dde5d16d3112b7 to your computer and use it in GitHub Desktop.
WSOD
<?php
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
*/
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
use Drupal\Core\DrupalKernel;
use Symfony\Component\HttpFoundation\Request;
try {
$autoloader = require_once 'autoload.php';
$kernel = new DrupalKernel('prod', $autoloader);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
}
catch (\Exception $e) {
var_dump($e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment