Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mailchimp): prevent merge fields fetch throwing fatal error #1376

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

dkoo
Copy link
Contributor

@dkoo dkoo commented Dec 5, 2023

All Submissions:

Changes proposed in this Pull Request:

Same fix as Automattic/newspack-plugin#2793, but for Newsletters.

How to test the changes in this Pull Request:

  1. Add $list_id = 'foo' to line 1057 here.
  2. On a site connected to Mailchimp, subscribe to a newsletter list via the Registration or Newsletter Subscription Form block.
  3. On release, observe an uncaught error in PHP logs (there won't be any user-facing errors, but the contact won't be added).
  4. Check out this branch and repeat. Confirm that instead of an uncaught error, you see a log: [NEWSPACK-NEWSLETTERS][Newspack_Newsletters_Subscription::process_subscription_intents]: Error adding contact: Error getting merge fields: The requested resource could not be found.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@github-actions github-actions bot added [Status] Approved Ready to merge and removed [Status] Needs Review labels Dec 5, 2023
@dkoo dkoo merged commit 7d64225 into release Dec 5, 2023
@dkoo dkoo deleted the hotfix/mailchimp-connector-check-merge-field-response branch December 5, 2023 21:07
matticbot pushed a commit that referenced this pull request Dec 5, 2023
## [2.6.2](v2.6.1...v2.6.2) (2023-12-05)

### Bug Fixes

* **mailchimp:** prevent merge fields fetch throwing fatal error ([#1376](#1376)) ([7d64225](7d64225))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.6.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Dec 5, 2023
# [2.7.0-alpha.3](v2.7.0-alpha.2...v2.7.0-alpha.3) (2023-12-05)

### Bug Fixes

* **mailchimp:** prevent merge fields fetch throwing fatal error ([#1376](#1376)) ([7d64225](7d64225))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.7.0-alpha.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants