XF 2.0 (Connected Accounts) Fatal error: Class 'GuzzleHttp\Client' not found

Fullmoon

Member
XF2

PHP 7.0.29
No addons, brand new install.

Set up Facebook, Twitter and Google + connected accounts.

I test the Facebook connected account and get this error

Fatal error: Class 'GuzzleHttp\Client' not found in /home/<myusername>/public_html/livestreamcommunity.com/src/XF/SubContainer/Http.php on line 78

I test the Twitter connected account and get this error (blank screen)

An unexpected error occurred. Please try again later.

--

Also get this appearing in the error logs
Stack Trace
#0 src/XF/SubContainer/Http.php(13): XF\SubContainer\Http->createClient()
#1 src/XF/Container.php(28): XF\SubContainer\Http->XF\SubContainer\{closure}(Object(XF\Container))
#2 src/XF/SubContainer/Http.php(89): XF\Container->offsetGet('client')
#3 src/XF/ConnectedAccount/Http/Client.php(42): XF\SubContainer\Http->client()
#4 src/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(124): XF\ConnectedAccount\Http\Client->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), Array, Array)
#5 src/XF/ConnectedAccount/Provider/AbstractProvider.php(215): OAuth\OAuth2\Service\AbstractService->requestAccessToken('AQAQ-DKTbGpCTTa...')
#6 connected_account.php(58): XF\ConnectedAccount\Provider\AbstractProvider->requestProviderToken(Object(XF\ConnectedAccount\Storage\StorageState), Object(XF\Http\Request), NULL, true)
#7 {main}
Request state

array(4) {
["url"] => string(411) "/connected_account.php?code=AQAQ-DKTbGpCTTaVg-SM9crk008aoEsynRBh37vt1EUoGk2BuY3qFEtPfdpzx0qR7m0MvXtpc4073VnWVTi8PaTPoUD-GpfrcfQaDbzV91LgaPdOT7llY4cWuLJ2fq3XQR1elbUWWPWSVEMk8SRhfVxxP1Py6JzodfRfaaTRe_60Vv4hZXEz43D4cPIu7CBbWAptySeK61ocJOLT-6KtbDxpJyW14oeOK8aS1OWyYFohXSoyi3LXT4k5v_hl48chk2tVmnbEFaH4rpdPq68nDWo8D3axh-KUb4Nos79lSq_lvil6u23JIc5AVdia2toGRnR5JKnHYtZJvQ3bdYRmcb4d&state=bc744a8d2725554b931b611628a2c9f9"
["referrer"] => string(61) "https://livestreamcommunity.com/admin.php?connected-accounts/"
["_GET"] => array(2) {
["code"] => string(344) "AQAQ-DKTbGpCTTaVg-SM9crk008aoEsynRBh37vt1EUoGk2BuY3qFEtPfdpzx0qR7m0MvXtpc4073VnWVTi8PaTPoUD-GpfrcfQaDbzV91LgaPdOT7llY4cWuLJ2fq3XQR1elbUWWPWSVEMk8SRhfVxxP1Py6JzodfRfaaTRe_60Vv4hZXEz43D4cPIu7CBbWAptySeK61ocJOLT-6KtbDxpJyW14oeOK8aS1OWyYFohXSoyi3LXT4k5v_hl48chk2tVmnbEFaH4rpdPq68nDWo8D3axh-KUb4Nos79lSq_lvil6u23JIc5AVdia2toGRnR5JKnHYtZJvQ3bdYRmcb4d"
["state"] => string(32) "bc744a8d2725554b931b611628a2c9f9"
}
["_POST"] => array(0) {
}
}
 

Attachments

  • xenforo.webp
    xenforo.webp
    54.6 KB · Views: 4
- FIXED -

For anyone else. Client.php was missing from \src\vendor\guzzlehttp\guzzle\src

Stumbled across the file health checker. Works perfect!

Uploaded it and all is fixed.
 
Top Bottom