2.0 vs. 2.1 Connected Accounts

PJMC

New member
Registered
Joined
Aug 5, 2021
Messages
1
Points
3

Reputation:

I'm looking at trying to get an unmaintained add-on working that worked on 2.0 but doesn't work on 2.1. Did they change the way connected accounts authorise in this update?

When I click connect account button it asks me to approve the connection on the requested site but then xenforo comes back with an error.

I have attached files so people can see if coding issue or it's outdated.

Thanks.

---

The error from XF is: An unexpected error occurred. Please try again later.

ACP Server log shows:

TypeError: Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, bool given, called in /home/philc774/public_html/src/vendor/guzzlehttp/guzzle/src/Client.php on line 89
src/vendor/guzzlehttp/guzzle/src/Client.php:128

Generated by: Unknown account
Aug 7, 2021 at 1:28 AM


Stack trace​


#0 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('setDefaultOptio...', 'verify', false)
#1 src/addons/OpenXBL/ConnectedAccount/Provider/OpenXBL.php(119): GuzzleHttp\Client->__call('setDefaultOptio...', Array)
#2 src/addons/OpenXBL/ConnectedAccount/Provider/OpenXBL.php(95): OpenXBL\ConnectedAccount\Provider\OpenXBL->requestAccessToken(Object(XF\ConnectedAccount\Storage\StorageState), 'M.R3_BL2.5cf8ab...')
#3 connected_account.php(58): OpenXBL\ConnectedAccount\Provider\OpenXBL->requestProviderToken(Object(XF\ConnectedAccount\Storage\StorageState), Object(XF\Http\Request), NULL, true)
#4 {main}


Request state​


array(4) {
["url"] => string(73) "/connected_account.php?code=M.R3_BL2.5cf8abb3-30c6-b5c5-dda8-315d37fe69ac"
["referrer"] => string(30) "https://www.philcanavan.co.uk/"
["_GET"] => array(1) {
["code"] => string(45) "M.R3_BL2.5cf8abb3-30c6-b5c5-dda8-315d37fe69ac"
}
["_POST"] => array(0) {
}
}
 

Attachments

  • ConnectedAccount.zip
    5 KB · Views: 119

sucre13

Moderator
Staff member
Moderator
Collaborate
Registered
Joined
Jan 19, 2019
Messages
845
Points
153

Reputation:

but there is another plugin that does that function in xenforo 2.1
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,520
Points
523

Reputation:

I'm looking at trying to get an unmaintained add-on working that worked on 2.0 but doesn't work on 2.1. Did they change the way connected accounts authorise in this update?

When I click connect account button it asks me to approve the connection on the requested site but then xenforo comes back with an error.

I have attached files so people can see if coding issue or it's outdated.

Thanks.

---

The error from XF is: An unexpected error occurred. Please try again later.

ACP Server log shows:
PJMCYou can try to change that line from:
PHP:
        $client->setDefaultOption('verify', false);
to
PHP:
        $client->setConfig('defaults/verify', false)

Check if that works, because the verify option has been removed in the setDefaultOption
 
Top