這發生在我身上過去3次。現在我真的想弄清楚問題所在。我最後幾次修好它的方式就是走開。幾個小時後我回來時,一切都按預期工作,直到幾天後再次發生。我在沒有更新任何代碼的情況下點擊頁面,然後突然間一切都停止了。在/Illuminate/Session/SessionServiceProvider.phplaravel undefined index session
驅動程序錯誤沒有什麼寫在Laravel日誌文件:
我得到一個未定義的索引。 php_errors.log文件沒有任何細節,apache_error.log文件也沒有。我完全被難倒了,還有死在水裏。我試着倒退到以前的提交版本,以確保我沒有破壞某些東西。但同樣的問題不管我走多遠。
下面就是我得到:
ErrorException 未定義指數:司機 開:/Users/website/laravel4/vendor/laravel/framework/src/Illuminate/Session/SessionServiceProvider.php
protected function registerSessionEvents()
{
$config = $this->app['config']['session'];
// The session needs to be started and closed, so we will register a before
// and after events to do all stuff for us. This will manage the loading
// the session "payloads", as well as writing them after each request.
**if (! is_null($config['driver']))**
{
$this->registerBootingEvent();
94行突出顯示,在上面的代碼中用兩個星號表示。 我運行Laravel 4.0版
我也試着更新作曲家
composer.json包含:
{
"require": {
"laravel/framework": "4.0.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/libraries",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-update-cmd": "php artisan optimize"
},
"minimum-stability": "dev"
}
我也試着改變最小的穩定性,以「穩定」,而沒似乎也沒有做到這一點。
任何幫助解決這個謎,將不勝感激。
作曲家的作業是非常不穩定的...只是每次它崩潰。 – Rolice
您可能想堅持穩定版本。 – majidarif