Hi I already read many about this issue, but I'm still not able to resolve it.
After I deployed my project on shared hosting, I'm getting blank screen on any route (existing or not existing) at all. I also turned on any error reporting, but there is nothing on screen, in laravel logs and in error/php logs.
When I tried to update web.php router with any and return string, there is also nothing written on display. So code never get to the router. Storage permissions changed to 777
index.php is accessible, but when I tried to find problem, I updated it with echoes:
echo '0001';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
echo '0002';
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
echo '0003';
$response->send();
echo '0004';
$kernel->terminate($request, $response);
echo '0005';
Last written is 0002 when I dump code after 0002:
When I dump $kernel, i got fulfilled json response of App\Http\Kernel
dump(Illuminate\Http\Request::capture());
I got full json response of Illuminate\Http\Request, but when I dump $kernel->handle():
$kernel->handle(
$request = Illuminate\Http\Request::capture()
)
I got nothing, so $kernel, $request are JSON, and $response is nothing and code is broken there without any message.
Any idea how to solve it?
In public/.htaccess I was forced to remove
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
as it is not working on our shared hosting, but I'm sure, that there is no issue, because older project with the same works fine.