How to diagnose Magento 2 errors


(Dmitry Fedyuk) #1

Advice 1

If you see the interface is frozen or looks oddly, but there are no error messages on the screen, then check the browser console for error reports.

Advice 2

If you see just a blank (empty) screen then it could be either a javascript error or a server error.

  • To detect a javascript error please follow the Advice 1.
  • To detect a server error please follow the Advice 3.

Advice 3

Set the proper error reporting for your PHP interpreter:

Advice 4

Switch Magento 2 to the developer mode.

Advice 5

See Magento error reports in the var/log folder.
Generally, you can see 2 files there: system.log and exception.log.
system.log usually contains a lot of low-level information and I do not think a generic administrator is able to properly analyse it.
So I recommend to see the exception.log only.

Advice 6

If Magento 2 runs in the production mode (not developer mode) then it does not show the actual error message on the screen, but shows a generic message: There has been an error processing your request and creates a detailed error report in the var/reports folder. You can find the error report file there by its report ID which is shown on the screen.

How to diagnose Ā«500 Internal Server ErrorĀ»?
Why does a switching to the developer mode break my site?
The exceptions are loggged into the var/log/exception.log file
Magento 2 does not strip the HTML tags while using the current product's description as the current HTML page's meta description (if the product does not have a dedicated meta description) (and my fix)
Once I left test mode Iā€™m getting a white screen on the ā€œcheckoutā€ page. I updated Stripe to live keys, and Stripe is set to live.
Why does Magento 2.0.2 freeze on a tier prices import?
Cant get to allpay after checkout with iphone(use chrome) and Mac(use safari)
How to diagnose Ā«503 Service UnavailableĀ»?
Why does a saving a customer's address in his address book not work in my store?
How to enable the developer mode?
How to see the diagnostic reports in the Google Chrome browser console?
(Dmitry Fedyuk) #2

See also:

(Dmitry Fedyuk) #3

10 posts were split to a new topic: Pressing the Ā«SaveĀ» button on a backend category page gives no response after considerable time