Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After adding $settings['http_client_config']['decode_content'] = 'gzip';
to settings.php every time I login I get a notice: Notice: Undefined index: proxy in Drupal\social_auth_google\Plugin\Network\GoogleAuth->initSdk() (line 128 of modules/contrib/social_auth_google/src/Plugin/Network/GoogleAuth.php).
with version 8.x-2.0-beta4.
I don't have any proxy settings there like $settings['http_client_config']['proxy']['http'] = 'http://proxy_user:proxy_pass@example.com:8080';
Comment | File | Size | Author |
---|---|---|---|
social_auth_google-fix-undefined-index-proxy.patch | 769 bytes | olli | |
|
Comments
Comment #2
Thew CreditAttribution: Thew as a volunteer commentedThis line of code now produce an array null notice on php 7.4.
https://www.php.net/manual/en/migration74.incompatible.php#migration74.i...
$proxyUrl = $this->siteSettings->get('http_client_config')['proxy']['http'];
Comment #3
naveenvalechaWe're using this patch https://www.drupal.org/project/social_auth_google/issues/3154225#comment... on a client project and its working fine for us.
However, both of the patches are same, so marking this as RTBC too.
Comment #4
naveenvalechaClosing this as duplicate of #3154225: Trying to access array offset on value of type null in GoogleAuth.php