Topic on Extension talk:GoogleLogin

Error con Extension talk:GoogleLogin

2
Nahueldev (talkcontribs)

Hola, estoy tratando de usar GoogleLogin, al momento de terminar la configuracion basica y querer loguearme me genera el siguiente error.

[bd7e4d07ed69db2b93b74049] /mw19/index.php?title=Special:UserLogin&returnto=Main+Page Error from line 27 of /home/koiurban/elbucle.com.ar/mw19/extensions/GoogleLogin/includes/GoogleLogin.php: Class 'Google_Client' not found

Backtrace:

#0 /home/koiurban/elbucle.com.ar/mw19/extensions/GoogleLogin/includes/Auth/GooglePrimaryAuthenticationProvider.php(393): GoogleLogin\GoogleLogin::getClient(string, string)

#1 /home/koiurban/elbucle.com.ar/mw19/extensions/GoogleLogin/includes/Auth/GooglePrimaryAuthenticationProvider.php(373): GoogleLogin\Auth\GooglePrimaryAuthenticationProvider->getGoogleClient()

#2 /home/koiurban/elbucle.com.ar/mw19/extensions/GoogleLogin/includes/Auth/GooglePrimaryAuthenticationProvider.php(41): GoogleLogin\Auth\GooglePrimaryAuthenticationProvider->beginGoogleAuthentication(array, string)

#3 /home/koiurban/elbucle.com.ar/mw19/includes/auth/AuthManager.php(458): GoogleLogin\Auth\GooglePrimaryAuthenticationProvider->beginPrimaryAuthentication(array)

#4 /home/koiurban/elbucle.com.ar/mw19/includes/auth/AuthManager.php(388): MediaWiki\Auth\AuthManager->continueAuthentication(array)

#5 /home/koiurban/elbucle.com.ar/mw19/includes/specialpage/AuthManagerSpecialPage.php(354): MediaWiki\Auth\AuthManager->beginAuthentication(array, string)

#6 /home/koiurban/elbucle.com.ar/mw19/includes/specialpage/AuthManagerSpecialPage.php(484): AuthManagerSpecialPage->performAuthenticationStep(string, array)

#7 /home/koiurban/elbucle.com.ar/mw19/includes/htmlform/HTMLForm.php(690): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)

#8 /home/koiurban/elbucle.com.ar/mw19/includes/specialpage/AuthManagerSpecialPage.php(417): HTMLForm->trySubmit()

#9 /home/koiurban/elbucle.com.ar/mw19/includes/specialpage/LoginSignupSpecialPage.php(313): AuthManagerSpecialPage->trySubmit()

#10 /home/koiurban/elbucle.com.ar/mw19/includes/specialpage/SpecialPage.php(575): LoginSignupSpecialPage->execute(NULL)

#11 /home/koiurban/elbucle.com.ar/mw19/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)

#12 /home/koiurban/elbucle.com.ar/mw19/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#13 /home/koiurban/elbucle.com.ar/mw19/includes/MediaWiki.php(900): MediaWiki->performRequest()

#14 /home/koiurban/elbucle.com.ar/mw19/includes/MediaWiki.php(527): MediaWiki->main()

#15 /home/koiurban/elbucle.com.ar/mw19/index.php(44): MediaWiki->run()

#16 {main}


Este es mi LocalSettings,


#GoogleLogin

wfLoadExtension (  'GoogleLogin'  );

#config

$wgGLSecret  =  'idsecret' ;

$wgGLAppId  =  'appid' ;

$wgGLReplaceMWLogin = true;

$wgGLForceKeepLogin = true;

$wgWhitelistRead = array( 'Special:GoogleLogin' );

#errores

$wgShowExceptionDetails=true;

Podrian ayudarme y comentarme donde estaria fallando, ??


Slds

PiotrKotowski (talkcontribs)

Hey,

in my case I had the same error with mediawiki 1.34 and Google Login plugin. To solve the issue I had :

- downloaded the master version of plugin (latest development version)

- set up composer

- adjusted composer.json :

"require": {
       "guzzlehttp/guzzle": "dev-6.5-functions as 6.5.3"
   },
   "repositories": [
       {"type": "vcs", "url": "git@github.com:GrahamCampbell/guzzle.git"}
   ]


- run 'composer update composer update --no-dev'


Also, I needed to run ' php updatePublicSuffixArray.php' (from maintenance dir) since I had been generally updating the mediawiki.


Good luck,

Piotr

Reply to "Error con Extension talk:GoogleLogin"