Bootstrap request is not being handled

Website URL

(https://icare.great-site.net/)

Error Message

(Server returning error 500)

index.php

<?php

use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
while (ob_get_level()) ob_end_clean();
ini_set('zlib.output_compression', 0);
ini_set('implicit_flush', 1);

if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
    require $maintenance;
}

require __DIR__.'/../vendor/autoload.php';

try {
    $app = require_once __DIR__.'/../bootstrap/app.php';
    echo "Bootstrap loaded successfully<br>";
    
    $request = Request::capture();
    echo "Request captured successfully<br>";
    
    $response = $app->handleRequest($request);
    echo "Request handled successfully<br>";
    
    $response->send();
} catch (Throwable $e) {
    $error = date('Y-m-d H:i:s')." - ".$e->getMessage()." in ".$e->getFile().":".$e->getLine().PHP_EOL;
    echo($error);
}

The output is showing up until

Bootstrap loaded successfully
Request captured successfully

which means the request isn’t being handled, I’ve checked all my .env & database but all is not helping

Turn on error logging

Control panel → php config → show errors

I’ve already done that but still not showing any errors…

Enabling display errors won’t work on our hosting because Laravel overrides the system error handler. Any errors should be stored in the logs at storage/framework/logs.

The handleRequest function is basically responsible for the entire request processing pipeline in your application, there is a massive codebase behind that which could experience all sorts of issues. So if you want to find this issue with tracing, you’re going to have to dig a lot deeper.