Answer the question
In order to leave comments, you need to log in
What is the Yii2 debug setting error?
Debug works fine on local.
And here on a hosting all I can not start in any way. Mistake
Calling unknown method: yii\debug\panels\ConfigPanel::isEnabled()
if (is_string($config)) {
$config = ['class' => $config];
}
$config['module'] = $this;
$config['id'] = $id;
$this->panels[$id] = Yii::createObject($config);
if ($this->panels[$id] instanceof Panel && !$this->panels[$id]->isEnabled()) {
unset($this->panels[$id]);
}
Answer the question
In order to leave comments, you need to log in
Goodnight. First, try specifying a parameter for the debug module
in the configuration file.
In the parameter value, pass your ip, from which you access the hosting.
You can find it on 2ip.ruallowedIPS
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
'allowedIPs' => ['тут_ваш_ip']
];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question