SyrupandSass
SyrupandSass

Reputation: 345

Laravel 4 Setup: Driver [file] not supported

I'm trying to set up an existing site that was built using Laravel 4 on my server. I've gotten stuck at an error: Driver [file] not supported. It's throwing the error from Illuminate/Support/Manager.php.

I've tried using boilerplate Laravel files for the Manager.php file, as well as the SessionManager.php file, but it still won't work. I've also tried to figure out if file is registered as a driver, but when I try to insert the code for it, I get lost because of undeclared functions.

When I try to change the default session driver in app/config/session to anything else, it just throws other errors at me. Yet this is the same way the site was originally set up on its own server, so I don't understand why it isn't working. Can anyone help me out?

Upvotes: 1

Views: 6508

Answers (2)

Dangeroustry
Dangeroustry

Reputation: 36

What is your php version?

Try to clean the session dir

app/storage/sessions    

then try to clean autoload file

cd [YOUR LARAVEL ROOT DIR]
composer dump-autoload

and update composer package to be sure vendor folder is ok

cd [YOUR LARAVEL ROOT DIR]
composer update

Upvotes: 1

The_ehT
The_ehT

Reputation: 1230

I was stuck in same problem, solved it. After changing any configuration config cache must be cleared using php artisan config:cache. Hope it helps.

Upvotes: 6

Related Questions