K
K
Konstantin B.2015-09-14 10:05:34
Laravel
Konstantin B., 2015-09-14 10:05:34

Why is Laravel crashing?

What can happen to Laravel that it just stops working? White screen and all.
This has already happened several times. The solution is to completely remove it from the server along with the root directory and copy it over a new one.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
OnYourLips, 2015-09-14
@OnYourLips

There is an error in your code. See the server logs for more details about this error.
Better yet, ask the programmer to look at the error so that he can fix it.

A
Artem Spiridonov, 2015-09-14
@customtema

It is not Laravel that crashes, but a program developed using it.
Look at the logs or contact a specialist.

A
Alexey, 2015-09-14
@xelam

Check the encoding and extra characters (especially UTF) in the files you opened and saved.

A
Azerlund6214, 2020-09-01
@Azerlund6214

I had it.
Symptoms:

  1. All pages have a blank white screen.
  2. When you open the page code in a separate tab - it's empty.
  3. Does not output any errors or feedback.
  4. Logs are empty.

How I decided:
Essence: I put an invalid type of comment in the .env file. The framework crashed
with a critical error, but could not show me this error because the classes and environment needed for this were not loaded.
Example

DB_CONNECTION=mysql
#DB_HOST=127.0.0.1 # Так комментировать можно (по 1 строке)
#DB_PORT=3306
#DB_DATABASE=laravel
/*
DB_USERNAME=root Так нельзя
DB_PASSWORD=root
*/

The essence of the problem
Somewhere in the internal Laravel files, an error appeared , and since the framework has not even loaded yet, there is no one to display the error, and there is no one to write logs either.
ฅ^•ﻌ•^ฅ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question