WSD on /admin/config/services/mailchimp/lists

Created on 26 October 2023, about 1 year ago

Problem/Motivation

I get WSD on /admin/config/services/mailchimp/lists when I should see a list of my audiences

Steps to reproduce

On an existing Drupal 9.5.11 site, with an existing Mailchimp module installation (8.x-1.12).
Upgrade via Composer to 2.2.2
Run the DB updates
Go to /admin/config/services/mailchimp/lists
WSD

The following is logged:

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 201 of /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php)
#0 /app/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(8192, 'preg_match(): P...', '/app/web/core/l...', 201)
#1 [internal function]: _drupal_error_handler(8192, 'preg_match(): P...', '/app/web/core/l...', 201)
#2 /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php(201): preg_match('#^[^/]++$#', NULL)
#3 /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php(250): Drupal\Core\Routing\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'mailchimp.webho...')
#4 /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php(291): Drupal\Core\Routing\UrlGenerator->getInternalPathFromRoute('mailchimp.webho...', Object(Symfony\Component\Routing\Route), Array, Array)
#5 /app/web/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php(105): Drupal\Core\Routing\UrlGenerator->generateFromRoute('mailchimp.webho...', Array, Array, true)
#6 /app/web/core/lib/Drupal/Core/Url.php(765): Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('mailchimp.webho...', Array, Array, false)
#7 /app/web/modules/composer/mailchimp/mailchimp.module(1144): Drupal\Core\Url->toString()
#8 /app/web/modules/composer/mailchimp/modules/mailchimp_lists/mailchimp_lists.module(578): mailchimp_webhook_url()
#9 /app/web/modules/composer/mailchimp/modules/mailchimp_lists/src/Controller/MailchimpListsController.php(44): mailchimp_lists_enabled_webhook_events('991d74ff45')
#10 [internal function]: Drupal\mailchimp_lists\Controller\MailchimpListsController->overview()
#11 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#12 /app/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#14 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#15 /app/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 /app/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#17 /app/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /app/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /app/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /app/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /app/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /app/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /app/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#27 {main}

And

Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "hash" for route "mailchimp.webhook_endpoint" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 203 of /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php).

Proposed resolution

I should be able to see the list of audiences as before, or if I need to takes some action (eg switch to OAuth) then be presented with a friendly message telling me this.

🐛 Bug report
Status

Active

Version

2.2

Component

Lists Module

Created by

🇬🇧United Kingdom matt b

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

Comments & Activities

Production build 0.71.5 2024