I am drying to deploy HyBridAuth as a plugin in my website . my fucntion looks something like this .
function authenticatewith( $provider ){
ini_set('display_errors','on');
//includes
$config = dirname(__FILE__) . '/hybridauth-2.1.2/hybridauth/config.php';
require_once( "hybridauth-2.1.2/hybridauth/Hybrid/Auth.php" );
$provider_name = $provider;
//$config = $this->getconfig($id);
try{
// initialize Hybrid_Auth with a given file
$hybridauth = new Hybrid_Auth( $config );
// try to authenticate with the selected provider
$adapter = $hybridauth->authenticate( $provider_name );
// then grab the user profile
$user_profile = $adapter->getUserProfile();
}
catch( Exception $e ){
echo "Error: please try again!";
echo "Original error message: " . $e->getMessage();
}
echo "USer Details: ";
var_dump($user_profile);
}
I am running into a fatal error when I try to access any of the provider .
Fatal error: Class 'Hybrid_Logger' not found in hybridauth/Hybrid/Endpoint.php on line 165
I get no links for this problem in stack I though I will raise this here.
Thanks & Regards