Deshabilitar el el módulo debug en yii2
1. Editar el archivo /config/web.php y comentar las siguientes lineas: $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', '::1'], ];