Answer the question
In order to leave comments, you need to log in
How to catch an error in yii2?
There is api on yii2 that works correctly.
But when migrating to a server (debian 8.0) a 500 Internal Server Error occurs even though I have dev mode enabled. I even tried to just copy all the files from the local to the server and still got a 500 error and it's not clear how to catch it ..(
Answer the question
In order to leave comments, you need to log in
Road to PHP logs. From experience, there is probably no extension, or something is wrong with the paths.
I also caught something similar, the problem was that there were no rights to write to the ./runtime folder or the app.log file was under a foreign user and Yii cannot write an error there. Further, by the logs, it is easier to solve problems
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question