RouteCollection.php第179行问题

时间:2017-09-14 14:57:48

标签: php apache laravel

我正在使用Laravel 5.4和Apache以及Ubuntu 14.04。

每次打开我的网站时都会遇到问题(nocnocgroup.com)。我收到的日志是:

{"code":404,"message":"","file":"\\/var\\/www\\/client\\/20170530\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/RouteCollection.php","line":179},

referer:http://nocnocgroup.com/css/home/style.css

这是一个记录异常的日志。

{
"code": 404,
"message": "",
"file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/RouteCollection.php",
"line": 179,
"trace": [{
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php",
    "line": 548,
    "function": "match",
    "class": "Illuminate\\\\Routing\\\\RouteCollection",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php",
    "line": 527,
    "function": "findRoute",
    "class": "Illuminate\\\\Routing\\\\Router",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php",
    "line": 513,
    "function": "dispatchToRoute",
    "class": "Illuminate\\\\Routing\\\\Router",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Http\\/Kernel.php",
    "line": 176,
    "function": "dispatch",
    "class": "Illuminate\\\\Routing\\\\Router",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Pipeline.php",
    "line": 30,
    "function": "Illuminate\\\\Foundation\\\\Http\\\\{closure}",
    "class": "Illuminate\\\\Foundation\\\\Http\\\\Kernel",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/barryvdh\\/laravel-cors\\/src\\/HandleCors.php",
    "line": 36,
    "function": "Illuminate\\\\Routing\\\\{closure}",
    "class": "Illuminate\\\\Routing\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Pipeline\\/Pipeline.php",
    "line": 148,
    "function": "handle",
    "class": "Barryvdh\\\\Cors\\\\HandleCors",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }, {}]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Pipeline.php",
    "line": 53,
    "function": "Illuminate\\\\Pipeline\\\\{closure}",
    "class": "Illuminate\\\\Pipeline\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Http\\/Middleware\\/TransformsRequest.php",
    "line": 30,
    "function": "Illuminate\\\\Routing\\\\{closure}",
    "class": "Illuminate\\\\Routing\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Pipeline\\/Pipeline.php",
    "line": 148,
    "function": "handle",
    "class": "Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }, {}]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Pipeline.php",
    "line": 53,
    "function": "Illuminate\\\\Pipeline\\\\{closure}",
    "class": "Illuminate\\\\Pipeline\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Http\\/Middleware\\/TransformsRequest.php",
    "line": 30,
    "function": "Illuminate\\\\Routing\\\\{closure}",
    "class": "Illuminate\\\\Routing\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Pipeline\\/Pipeline.php",
    "line": 148,
    "function": "handle",
    "class": "Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }, {}]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Pipeline.php",
    "line": 53,
    "function": "Illuminate\\\\Pipeline\\\\{closure}",
    "class": "Illuminate\\\\Pipeline\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Http\\/Middleware\\/ValidatePostSize.php",
    "line": 27,
    "function": "Illuminate\\\\Routing\\\\{closure}",
    "class": "Illuminate\\\\Routing\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Pipeline\\/Pipeline.php",
    "line": 148,
    "function": "handle",
    "class": "Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }, {}]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Pipeline.php",
    "line": 53,
    "function": "Illuminate\\\\Pipeline\\\\{closure}",
    "class": "Illuminate\\\\Pipeline\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Http\\/Middleware\\/CheckForMaintenanceMode.php",
    "line": 46,
    "function": "Illuminate\\\\Routing\\\\{closure}",
    "class": "Illuminate\\\\Routing\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Pipeline\\/Pipeline.php",
    "line": 148,
    "function": "handle",
    "class": "Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\CheckForMaintenanceMode",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }, {}]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Pipeline.php",
    "line": 53,
    "function": "Illuminate\\\\Pipeline\\\\{closure}",
    "class": "Illuminate\\\\Pipeline\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Pipeline\\/Pipeline.php",
    "line": 102,
    "function": "Illuminate\\\\Routing\\\\{closure}",
    "class": "Illuminate\\\\Routing\\\\Pipeline",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Http\\/Kernel.php",
    "line": 151,
    "function": "then",
    "class": "Illuminate\\\\Pipeline\\\\Pipeline",
    "type": "->",
    "args": [{}]
}, {
    "file": "\\/var\\/www\\/client\\/20170403\\/nocnoc\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Http\\/Kernel.php",
    "line": 116,
    "function": "sendRequestThroughRouter",
    "class": "Illuminate\\\\Foundation\\\\Http\\\\Kernel",
    "type": "->",
    "args": [{
        "attributes": {},
        "request": {},
        "query": {},
        "server": {},
        "files": {},
        "cookies": {},
        "headers": {}
    }]
}]
}

我不知道从哪里开始,因为异常跟踪是所有框架内容,我不知道它是服务器问题(apache)还是编码问题(laravel)。如果你能帮助我,那就太好了。

非常感谢

0 个答案:

没有答案