Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alan's avatar
Level 3

Running any artisan command shows my session config file content and Session store not set on request

Hi, I've just upgraded my Laravel app from 5.4 to 5.5 using the Laravel Shift service, after running composer update no errors found, I run php artisan serve and it prints my config/session.php file contents in the console and then it prints the usual Laravel development server started: <http://127.0.0.1:8000>

Then when I go to my http://127.0.0.1:8000 I get the error RuntimeException Session store not set on request.

I notice that this happens with any artisan command I use, it always prints my session.php contents and then it executes the command, even the php artisan --version one

I've already cleared caches, sessions, routes and created a new encryption key.

Any help is appreciated.

0 likes
3 replies
Snapey's avatar

All artisan commands bootstrap your project. If there is an error it may not be obvious but there should be a stack trace in your log file

Is there any chance you left a dump command somewhere?

alan's avatar
Level 3

Hi, thank you for the reply, my last 2 entries on the log are:

[2018-02-17 22:35:20] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method App\Console\Kernel::load()' in /Users/alan/Dev/htdocs/travelzcrm/src/app/Console/Kernel.php:38

and the last one is:

[2018-02-18 00:00:57] local.ERROR: Session store not set on request. {"exception":"[object] (RuntimeException(code: 0): Session store not set on request. at /Users/alan/Dev/htdocs/travelzcrm/src/vendor/laravel/framework/src/Illuminate/Http/Request.php:415)

The app worked fine before the upgrade.

alan's avatar
alan
OP
Best Answer
Level 3

It turned out to be a missing <?php in my config/session.php I think I deleted it when doing manual upgrades

Please or to participate in this conversation.