Hi,

I have installed this module using below link,
https://www.drupal.org/docs/8/modules/social-api/social-api-2x/social-au...

I have installed using below command:
composer require "drupal/social_api:2.x-dev" "drupal/social_auth:2.x-dev" "drupal/social_auth_google:2.x-dev"
composer require league/oauth2-google

The library is placed in the vendor/league/ directory

In the recent log messages,

Drupal\social_api\SocialApiException: The Google library for PHP League OAuth2 not found. Class: \League\OAuth2\Client\Provider\Google. in Drupal\social_auth_google\Plugin\Network\GoogleAuth->initSdk() (line 44 of /srv/bindings/8a7e2aceeb204fc491f94185d0adc4cb/code/modules/contrib/social_auth_google/src/Plugin/Network/GoogleAuth.php).

I am getting this error message "The website encountered an unexpected error. Please try again later.", when I click on the google button.

Please fix this issue.

Comments

patelmayank7552 created an issue. See original summary.

mudasty’s picture

I'm getting same issue.

Any solution?

gvso’s picture

That's weird. Does the stable version also fail? This error should only happen when the league library was not installed.

ssankarsiva’s picture

I also faced same issue on hosting server but dev local machine it works. Googled it and got it fixed on server.
Steps I have done.

  • Ran the composer command on dev local machine "composer dump-autoload -o"
  • Moved autoload.php file and composer directory from vendor directory
wells’s picture

Status: Active » Closed (outdated)