Encountered the following issue when navigate to the stats tab of a specific sent campaign

Notice: Undefined property: stdClass::$recipients_click in Drupal\mailchimp_campaign\Controller\MailchimpCampaignController->stats() (line 187 of modules/contrib/mailchimp/modules/mailchimp_campaign/src/Controller/MailchimpCampaignController.php).
Drupal\mailchimp_campaign\Controller\MailchimpCampaignController->stats(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 153)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

My-Websitebuilder created an issue. See original summary.

My-Websitebuilder’s picture

Title: Error on the stats page » Error on the stats tab
My-Websitebuilder’s picture

Status: Active » Needs review
StatusFileSize
new796 bytes
samuel.mortenson’s picture

Assigned: Unassigned » rjacobsen0
rjacobsen0’s picture

Status: Needs review » Fixed

Good fix. Committing. Follows the pattern set by the line for 'emails_sent'. Nicely done!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.