WSOD - Proxy issue

Created on 8 March 2018, over 6 years ago
Updated 18 October 2023, about 1 year ago

I get a WSOD when I visit campaigns page. Proxy configuration is not taken into consideration. I've checked patch #9 from https://www.drupal.org/project/mailchimp/issues/2852755 β†’ but I don't understand why it does not use "http_client_config" variable.

I've fixed it with the following in mailchimp.module file :

$http_options = [
    'timeout' => 60,
  ];

  // Check if there is a proxy
  if ($proxy_server = \Drupal\Core\Site\Settings::get('http_client_config')) {
    $proxy_http = sprintf(
      'tcp://%s',
      preg_replace("(^https?://)", "", $proxy_server['proxy']['http'])
    );
    $proxy_https = sprintf(
      'tcp://%s',
      preg_replace("(^https?://)", "", $proxy_server['proxy']['http'])
    );
    $http_options += [
      'proxy' => [
        'http' => $proxy_http,
        'https' => $proxy_https
      ]
    ];
  }

  $mailchimp = new $classname($api_key, 'apikey', $http_options);
πŸ› Bug report
Status

Needs work

Version

1.11

Component

General

Created by

πŸ‡«πŸ‡·France progzy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024