Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

L5.2: Specifying ardent as driver for user provider for in auth.php causes "Authentication user provider [ardent] is not defined" error #290

Open
sitrick2 opened this issue Jan 27, 2016 · 3 comments

Comments

@sitrick2
Copy link

This may be on my end and I may just be misunderstanding the implementation, but when specifying Ardent as the Default Authentication Driver provider in 5.2's auth.php I start getting the error below. If I switch the provider to Eloquent instead, my app loads, however any call to any Ardent model results in nginx kicking out a Bad Gateway error. I've been trying to resolve this for three days. Is Ardent just not compatible with 5.2 at this point?

InvalidArgumentException in CreatesUserProviders.php line 40:
Authentication user provider [ardent] is not defined.
in CreatesUserProviders.php line 40
at AuthManager->createUserProvider('users') in AuthManager.php line 104
at AuthManager->createSessionDriver('web', array('driver' => 'session', 'provider' => 'users')) in AuthManager.php line 79
at AuthManager->resolve('web') in AuthManager.php line 57
at AuthManager->guard() in AuthManager.php line 246
at AuthManager->__call('guest', array()) in Facade.php line 215
at Facade::__callStatic('guest', array()) in routes.php line 91
at RouteServiceProvider->{closure}(object(Router))
at call_user_func(object(Closure), object(Router)) in Router.php line 377
at Router->group(array('middleware' => 'fw-block-bl|auth|admin-redirect'), object(Closure)) in Facade.php line 221
at Facade::__callStatic('group', array(array('middleware' => 'fw-block-bl|auth|admin-redirect'), object(Closure))) in routes.php line 98
at require('/home/vagrant/code/cr/app/Http/routes.php') in RouteServiceProvider.php line 40
at RouteServiceProvider->App\Providers{closure}(object(Router))
at call_user_func(object(Closure), object(Router)) in Router.php line 377
at Router->group(array('namespace' => 'App\Http\Controllers'), object(Closure)) in RouteServiceProvider.php line 41
at RouteServiceProvider->map(object(Router))
at call_user_func_array(array(object(RouteServiceProvider), 'map'), array(object(Router))) in Container.php line 507
at Container->call(array(object(RouteServiceProvider), 'map')) in RouteServiceProvider.php line 72
at RouteServiceProvider->loadRoutes() in RouteServiceProvider.php line 31
at RouteServiceProvider->boot(object(Router)) in RouteServiceProvider.php line 27
at RouteServiceProvider->boot(object(Router))
at call_user_func_array(array(object(RouteServiceProvider), 'boot'), array(object(Router))) in Container.php line 507
at Container->call(array(object(RouteServiceProvider), 'boot')) in Application.php line 734
at Application->bootProvider(object(RouteServiceProvider)) in Application.php line 717
at Application->Illuminate\Foundation{closure}(object(RouteServiceProvider), '14')
at array_walk(array(object(EventServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FoundationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(StorageServiceProvider), object(AwsCsServiceProvider), object(ReportingServiceProvider), object(ZipAlertsServiceProvider), object(ExportServiceProvider), object(RoutingServiceProvider), object(ImportServiceProvider), object(DailyLogServiceProvider), object(JobSeekerReportServiceProvider), object(ClickCastServiceProvider), object(ClickReportingServiceProvider), object(MajorTranslationServiceProvider), object(YoutubeServiceProvider), object(ServiceProvider), object(ComposerServiceProvider), object(CommanderServiceProvider)), object(Closure)) in Application.php line 718
at Application->boot() in BootProviders.php line 17
at BootProviders->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 232
at Kernel->bootstrap() in Kernel.php line 127
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 53

@igorsantos07
Copy link
Member

As the upgrade from 5.1 to 5.2 is a minor version, it should not cause any trouble.
However, I have not yet tried to upgrade my applications. I'm using "eloquent" as auth driver, however; there's no "ardent" auth driver.

When a Bad Gateway occurs on Nginx, usually there's a fatal error inside the PHP scripts, that can be found if you search for the PHP log files - it breaks before PHP is able to spit a nice error message to Nginx. Have you tried that?

@sitrick2
Copy link
Author

sitrick2 commented Feb 3, 2016

I was unable to solve the issue on 5.2, but downgrading to 5.1 solved the problem entirely and Ardent seems to be working fine. Still unsure what 5.2 changes might be breaking it.

@igorsantos07
Copy link
Member

Ok, do this probably is an issue related to 5.2. Sad enough, as a minor version upgrade, but...
I'll take a look at this in the following weeks if anyone tries to help out :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants