laravel-mongodb-session icon indicating copy to clipboard operation
laravel-mongodb-session copied to clipboard

Getting error due to missing implementation of getDefaultDriver after 4.2 upgrade

Open dizbiz90 opened this issue 10 years ago • 4 comments

I am getting the error message bellow after upgrading to Laravel 4.2. When I looked into the error message it is due to missing implementation of getDefaultDriver method.

{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class Jenssegers\Mongodb\Session\SessionManager contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Support\Manager::getDefaultDriver)","file":"G:\Workspace\Luukal Workspace\lk-dev\vendor\jenssegers\mongodb-session\src\Jenssegers\Mongodb\Session\SessionManager.php","line":73}}

dizbiz90 avatar Jun 16 '14 07:06 dizbiz90

There is no line 73 in Jenssegers\Mongodb\Session\SessionManager.php. Did you add that?

jenssegers avatar Jun 16 '14 09:06 jenssegers

Yep the original goes up to line 69. I added the getDefaultDriver function; however didn't get a change to test it. /** * Get the default driver. * * @return string */ public function getDefaultDriver() { return $this->app['config']['session.driver']; }

dizbiz90 avatar Jun 17 '14 05:06 dizbiz90

Can you check if that last commit fixed things?

jenssegers avatar Jun 17 '14 09:06 jenssegers

Thanks that fixed the issue :).

dizbiz90 avatar Jun 19 '14 05:06 dizbiz90