When Yii2 is enabled, debug does not display the debugging toolbar (online environment)

yii2 framework, debug toolbar is not displayed after opening debug, online environment does not display, but offline can be displayed
as shown below, none online. After the code is uploaded online, only the database configuration is modified, but the rest is not changed

clipboard.png

I configured ip, in the configuration web.php and then it didn"t work, as follows

if (YII_ENV_DEV) {
    // configuration adjustments for "dev" environment
    $config["bootstrap"][] = "debug";
    $config["modules"]["debug"] = [
        "class" => "yii\debug\Module",
        // uncomment the following to add your IP if you are not connecting from localhost.
        "allowedIPs" => ["127.0.0.1", "IP"],  
    ];

    $config["bootstrap"][] = "gii";
    $config["modules"]["gii"] = [
        "class" => "yii\gii\Module",
        // uncomment the following to add your IP if you are not connecting from localhost.
        "allowedIPs" => ["127.0.0.1", "IP"],
    ];
}

Apr.03,2021

first check whether the web/index.php of the online server does have these two lines:

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

because in general web/index.php is not placed in version control.

in addition, take the liberty of asking,'is my IP' a public network IP? It's not the IP at the beginning of 192.168 , is it?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bce781-30be4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bce781-30be4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?