Update Mailchimp Mergevar Values broken

Created on 30 November 2023, 12 months ago
Updated 5 July 2024, 5 months ago

Problem/Motivation

Using the feature "Update Mailchimp Mergevar Values" don't merge variables. It stops in the middle of the batch.
With error like that :

Exception : Unknown property field_specific in property path field_specific dans _mailchimp_lists_mergevars_populate() (ligne 323 de /opt/sites/gip-info.com/website/web/modules/contrib/mailchimp/modules/mailchimp_lists/mailchimp_lists.module).
<!--break-->

Steps to reproduce

- Add mailchimp field on one of your entities, define fields with mailchimp, make sure you can subscribe with mailchimp.
Go to page : /admin/config/services/mailchimp/fields
Click on Update Mailchimp Mergevar Values
The batch will stop with errors.

Proposed resolution

Line 441 of mailchimp_lists.module :
The module try to merge variables from random ids (array_keys of an array listing ids).
The patch is simple. Sorry, i didn't took time to find a way to make it.

  $context['sandbox']['entity_ids'] = $query_results;//array_keys($query_results);
πŸ› Bug report
Status

Fixed

Version

2.2

Component

Lists Module

Created by

πŸ‡«πŸ‡·France thomas-at-passerelle

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

Comments & Activities

Production build 0.71.5 2024