当前位置: 首页 > 工具软件 > Log4Jse > 使用案例 >

log-1-2

夏侯弘光
2023-12-01
2016-10-02 16:56:15 [::1][-][-][error][yii\base\ErrorException:2] exception 'yii\base\ErrorException' with message 'in_array()
    expects at least 2 parameters, 0 given' in J:\wamp\www\YII\Primary-application\basic\controllers\DefaultController.php:31

// 报错 J:\wamp\www\YII\Primary-application\basic\controllers\DefaultController.php:31 文件中的第31行

Stack trace:
#0 J:\wamp\www\YII\Primary-application\basic\vendor\yiisoft\yii2\base\InlineAction.php(55): app\
    controllers\DefaultController->actionIndex()
#1 J:\wamp\www\YII\Primary-application\basic\vendor\yiisoft\yii2\base\InlineAction.php(55): ::call_user_func_array:
    {J:\wamp\www\YII\Primary-application\basic\vendor\yiisoft\yii2\base\InlineAction.php:55}()
#2 J:\wamp\www\YII\Primary-application\basic\vendor\yiisoft\yii2\base\Controller.php(154): yii\base\InlineAction->
    runWithParams()
#3 J:\wamp\www\YII\Primary-application\basic\vendor\yiisoft\yii2\base\Module.php(454): yii\base\Controller->runAction()
#4 J:\wamp\www\YII\Primary-application\basic\vendor\yiisoft\yii2\web\Application.php(87): yii\base\Module->runAction()
#5 J:\wamp\www\YII\Primary-application\basic\vendor\yiisoft\yii2\base\Application.php(375): yii\web\
    Application->handleRequest()
#6 J:\wamp\www\YII\Primary-application\basic\web\index.php(12): yii\base\Application->run()
#7 {main}
2016-10-02 16:56:15 [::1][-][-][info][application] $_COOKIE = [
    '_csrf' => '99252574e22932c4d3cc6b5900270994ace562b11cd0a809b01f4a15a8e72c7ca:2:{i:0;s:5:\"_csrf\";i:1;s:32:
     \"HZk0e1bOSA0s8UiCWBV93KLViDoAWJP4\";}'
    'PHPSESSID' => 'ln5124joimjbvpiv11aomttjf5'
]

$_SERVER = [
    'REDIRECT_STATUS' => '200'
    'HTTP_HOST' => 'localhost'
    'HTTP_CONNECTION' => 'keep-alive'
    'HTTP_UPGRADE_INSECURE_REQUESTS' => '1'
    'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 
        Safari/537.36'

     // 请求是用的什么浏览器版本号 操作系统 

    'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
    'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, sdch'
    'HTTP_ACCEPT_LANGUAGE' => 'zh-CN,zh;q=0.8'

    // 请求的语言

    'HTTP_COOKIE' => '_csrf=99252574e22932c4d3cc6b5900270994ace562b11cd0a809b01f4a15a8e72c7ca%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_
        csrf%22%3Bi%3A1%3Bs%3A32%3A%22HZk0e1bOSA0s8UiCWBV93KLViDoAWJP4%22%3B%7D; PHPSESSID=ln5124joimjbvpiv11aomttjf5'
    'PATH' => 'd:\\windows\\system32;D:\\Program Files\\TortoiseGit\\bin;J:\\wamp\\bin\\php\\php5.5.12;;D:\\windows;D:
        \\windows\\system32\\wbem;J:\\wamp\\bin\\mysql\\mysql5.6.17\\bin;'
    'SystemRoot' => 'D:\\windows'
    'COMSPEC' => 'D:\\windows\\system32\\cmd.exe'
    'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
    'WINDIR' => 'D:\\windows'
    'SERVER_SIGNATURE' => '<address>Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80</address>
'
    'SERVER_SOFTWARE' => 'Apache/2.4.9 (Win32) PHP/5.5.12'
    'SERVER_NAME' => 'localhost'
    'SERVER_ADDR' => '::1'
    'SERVER_PORT' => '80'
    'REMOTE_ADDR' => '::1'
    'DOCUMENT_ROOT' => 'J:/wamp/www/'
    'REQUEST_SCHEME' => 'http'
    'CONTEXT_PREFIX' => ''
    'CONTEXT_DOCUMENT_ROOT' => 'J:/wamp/www/'
    'SERVER_ADMIN' => 'admin@example.com'
    'SCRIPT_FILENAME' => 'J:/wamp/www/YII/Primary-application/basic/web/index.php'
    'REMOTE_PORT' => '60666'
    'REDIRECT_URL' => '/YII/Primary-application/basic/web/default/index'     //请求的 URL 地址 是这个
    'GATEWAY_INTERFACE' => 'CGI/1.1'
    'SERVER_PROTOCOL' => 'HTTP/1.1'
    'REQUEST_METHOD' => 'GET'
    'QUERY_STRING' => ''
    'REQUEST_URI' => '/YII/Primary-application/basic/web/default/index'   
    'SCRIPT_NAME' => '/YII/Primary-application/basic/web/index.php'
    'PATH_INFO' => '/default/index'
    'PATH_TRANSLATED' => 'J:\\wamp\\www\\default\\index'
    'PHP_SELF' => '/YII/Primary-application/basic/web/index.php/default/index'  //是从这个地方跳转过来的
    'REQUEST_TIME_FLOAT' => 1475420175.008
    'REQUEST_TIME' => 1475420175
]
 类似资料: