Answer the question
In order to leave comments, you need to log in
Why is debug panel dying in yii2?
On a certain page of the site, the debug panel displays (this code pops up in the panel itself, instead of it):
PHP Fatal Error 'yii\base\ErrorException' with message 'Call to a member function formName() on null'
in L:\domains\newtm\yii\vendor\yiisoft\yii2\helpers\BaseHtml.php:1882
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}
$formName = $model->formName();
Answer the question
In order to leave comments, you need to log in
What can be wrong? Any ideas?
1. We take the basic application template.
2. We write as little code as possible so that the problem is reproduced.
3. Upload to https://github.com/yiisoft/yii2-debug/issues/new
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question