Latest Laravel 5.1.10 is spitting out this error when cache=redis in the config. Only happens with cache.
ErrorException in RedisStore.php line 39:
Argument 1 passed to Illuminate\Cache\RedisStore::__construct() must be an instance of Illuminate\Redis\Database, instance of Redis given, called in /home/vagrant/Projects/localsite.dev/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php on line 205 and defined
in RedisStore.php line 39
at HandleExceptions->handleError('4096', 'Argument 1 passed to Illuminate\Cache\RedisStore::__construct() must be an instance of Illuminate\Redis\Database, instance of Redis given, called in /home/vagrant/Projects/localsite.dev/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php on line 205 and defined', '/home/vagrant/Projects/localsite.dev/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php', '39', array()) in RedisStore.php line 39
at RedisStore->__construct(object(Redis), 'localsite', 'default') in CacheManager.php line 205
at CacheManager->createRedisDriver(array('driver' => 'redis', 'connection' => 'default')) in CacheManager.php line 97
at CacheManager->resolve('redis') in CacheManager.php line 77
at CacheManager->get('redis') in CacheManager.php line 55
at CacheManager->store() in CacheManager.php line 310
at CacheManager->__call('forget', array('cartalyst.config')) in Repository.php line 242
at CacheManager->forget('cartalyst.config') in Repository.php line 242
at Repository->removeCache() in Repository.php line 183
at Repository->fetchAndCache() in CompositeConfigServiceProvider.php line 102
at CompositeConfigServiceProvider->setUpConfig() in CompositeConfigServiceProvider.php line 41
at CompositeConfigServiceProvider->register() in Application.php line 531
at Application->register(object(CompositeConfigServiceProvider)) in ProviderRepository.php line 74
at ProviderRepository->load(array('Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', 'Illuminate\Broadcasting\BroadcastServiceProvider', 'Illuminate\Bus\BusServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Foundation\Providers\FoundationServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Pipeline\PipelineServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Passwords\PasswordResetServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'App\Providers\AppServiceProvider', 'App\Providers\EventServiceProvider', 'App\Providers\RouteServiceProvider', 'Cartalyst\Sentinel\Laravel\SentinelServiceProvider', 'Cartalyst\NestedSets\Laravel\NestedSetsServiceProvider', 'Cartalyst\DataGrid\Laravel\DataGridServiceProvider', 'Cartalyst\CompositeConfig\Laravel\CompositeConfigServiceProvider', 'Barryvdh\Debugbar\ServiceProvider', 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', 'Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider', 'Former\FormerServiceProvider', 'BackupManager\Laravel\Laravel5ServiceProvider', 'Laravel\Cashier\CashierServiceProvider')) in Application.php line 507
at Application->registerConfiguredProviders() in RegisterProviders.php line 17
at RegisterProviders->bootstrap(object(Application)) in Application.php line 203
at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 222
at Kernel->bootstrap() in Kernel.php line 117
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54
Can't replicate. Please ask on the fourms.
I have the same issue. Did you ever find a fix, @eComEvo?
@goodevilgenius I'm at Laravel 5.4 now and no longer experience the issue. An upgrade might be your best route.
I was on Lumen 5.6. Fully upgraded.
Turns out the issue for me was that I failed to register the RedisServiceProvider.
Most helpful comment
I was on Lumen 5.6. Fully upgraded.
Turns out the issue for me was that I failed to register the
RedisServiceProvider.