Skip to content

Conversation

@martiros
Copy link
Contributor

Getting fatal error for application maintenance mode
ErrorException: Undefined index: _sf2_meta at /var/www/vendor/laravel/framework/src/Illuminate/Session/Store.php:280

If application in maintenance mode
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode throw new HttpException(503);
and StartSession::handle method not called, but at the end of the request Laravel call terminate function in StartSession middleware to save session data and that why getting error "Undefined index: _sf2_meta at "

My change is checking if handle method not called, than not saving session data

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing fullstop and the description is rubbish

@GrahamCampbell GrahamCampbell changed the title Do not call terminate method if handle method not called in StartSession middleware [5.0] Do not call terminate method if handle method not called in StartSession middleware Jan 20, 2015
taylorotwell added a commit that referenced this pull request Jan 21, 2015
[5.0] Do not call terminate method if handle method not called in StartSession middleware
@taylorotwell taylorotwell merged commit 1215f8e into laravel:master Jan 21, 2015
@djtarazona
Copy link
Contributor

👍

@martiros martiros deleted the master branch January 28, 2015 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants