D
D
DarkByte20152017-10-20 09:29:57
Yii
DarkByte2015, 2017-10-20 09:29:57

Why is the Yii2 debug panel not showing up?

Registered in the config

return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => [
            'class' => 'yii\debug\Module',
            'allowedIPs' => ['*'] // пробовал и совсем удалять эту строку
        ],
    ]
];

The panel is hard to see. But the most important thing is that I see it in the source code of the page! But it is not displayed on the page... Adblocker is disabled. I thought for a long time and eventually noticed this joke
59e9977351e5c064729266.jpeg
Where does this display: none come from? He then does not allow her to appear on the campaign. True, when I removed it through the debug tools of the browser, it still did not appear. But I noticed such an inscription in the console
59e997aecff6c782513233.png
, and when I followed the link from this error, I saw this.
59e997cddff39050184715.jpeg
What would it all mean?
PS Yii2 set through composer.
PS2 Here is exactly the same problem, only I did not understand how to solve it. There's something about changing the sessions folder and extending the Session class... Xs how to do it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-10-20
@slo_nik

Good morning.
In config/web.php

if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
    ];

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
    ];
}

And delete this
'modules' => [
        'debug' => [
            'class' => 'yii\debug\Module',
            'allowedIPs' => ['*'] // пробовал и совсем удалять эту строку
        ],
    ]

Also clear the runtime/debug directory.
ps Oh, these blurring on the screenshots! Conspirators!!!)))

M
Maxim Timofeev, 2017-10-20
@webinar

check the routing, there is ajax loading, so stupidly from the urlManager settings may not work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question