heiglandreas / HybridAuth

Integrates SocialConnect as SIMPLE authentication-backend into the ZendFramework 3
https://hybridauth.heigl.org
21 stars 8 forks source link

Notice: Undefined index: OrgHeiglHybridAuth #19

Closed lorezyra closed 9 years ago

lorezyra commented 9 years ago

I have PHP spit out all notices/errors and warnings...

This is one of the notices I see: ( ! ) Notice: Undefined index: OrgHeiglHybridAuth in /var/www/vendor/OrgHeiglHybridAuth/src/OrgHeiglHybridAuth/Service/HybridAuthFactory.php on line 62

Call Stack
#   Time    Memory  Function    Location
1   0.0002  233136  {main}( )   ../index.php:0
2   0.0646  3286072 Zend\Mvc\Application->run( )    ../index.php:34
3   0.0658  3312992 Zend\EventManager\EventManager->trigger( )  ../Application.php:313
4   0.0658  3312992 Zend\EventManager\EventManager->triggerListeners( ) ../EventManager.php:207
5   0.0659  3314752 call_user_func:{/var/www/vendor/ZF2/library/Zend/EventManager/EventManager.php:468} ( ) ../EventManager.php:468
6   0.0659  3314784 Zend\Mvc\DispatchListener->onDispatch( )    ../EventManager.php:468
7   0.0660  3315520 Zend\Mvc\Controller\ControllerManager->get( )   ../DispatchListener.php:96
8   0.0660  3315736 Zend\ServiceManager\AbstractPluginManager->get( )   ../ControllerManager.php:137
9   0.0660  3315880 Zend\ServiceManager\ServiceManager->get( )  ../AbstractPluginManager.php:103
10  0.0660  3317200 Zend\ServiceManager\ServiceManager->create( )   ../ServiceManager.php:525
11  0.0660  3317320 Zend\ServiceManager\ServiceManager->doCreate( ) ../ServiceManager.php:593
12  0.0660  3317656 Zend\ServiceManager\AbstractPluginManager->createFromFactory( ) ../ServiceManager.php:633
13  0.0661  3320032 Zend\ServiceManager\AbstractPluginManager->createServiceViaCallback( )  ../AbstractPluginManager.php:215
14  0.0661  3320608 Zend\ServiceManager\ServiceManager->createServiceViaCallback( ) ../AbstractPluginManager.php:259
15  0.0661  3321016 call_user_func:{/var/www/vendor/ZF2/library/Zend/ServiceManager/ServiceManager.php:923} ( ) ../ServiceManager.php:923
16  0.0662  3321056 OrgHeiglHybridAuth\Service\IndexControllerFactory->createService( ) ../ServiceManager.php:923
17  0.0662  3321272 Zend\ServiceManager\ServiceManager->get( )  ../IndexControllerFactory.php:64
18  0.0662  3322272 Zend\ServiceManager\ServiceManager->create( )   ../ServiceManager.php:525
19  0.0662  3322272 Zend\ServiceManager\ServiceManager->doCreate( ) ../ServiceManager.php:593
20  0.0662  3322320 Zend\ServiceManager\ServiceManager->createFromFactory( )    ../ServiceManager.php:633
21  0.0663  3324776 Zend\ServiceManager\ServiceManager->createServiceViaCallback( ) ../ServiceManager.php:1055
22  0.0663  3325152 call_user_func:{/var/www/vendor/ZF2/library/Zend/ServiceManager/ServiceManager.php:923} ( ) ../ServiceManager.php:923
23  0.0663  3325192 OrgHeiglHybridAuth\Service\HybridAuthFactory->createService( )  ../ServiceManager.php:923

I don't see anywhere in the config for this index. Is this required?

heiglandreas commented 9 years ago

Seems like the config isn't read properly. You should copy the file module.orgHeiglHybridAuth.test.php to your config/autoload-directory and adapt as appropriate.

Do you use the master- or the feature/multipleProviders-branch?

lorezyra commented 9 years ago

I'm using master.

You're right, it wasn't loading. I should get more sleep... :sweat_smile:

As you suggested, I copied and renamed the file to ROOT_PATH . "/config/autoload/vendor.OrgHeiglHybridAuth.global.php" and this resolved that error.

Thanks. Case closed.