Created
April 12, 2016 19:49
-
-
Save jacine/6f32668d6276873b49dde5d16d3112b7 to your computer and use it in GitHub Desktop.
WSOD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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