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

Webhook processing fails when list id does not match any list configured in Magento #337

Closed
Santiagoebizmarts opened this issue Jul 4, 2018 · 0 comments · Fixed by #342
Assignees
Milestone

Comments

@Santiagoebizmarts
Copy link
Contributor

Santiagoebizmarts commented Jul 4, 2018

Preconditions

mc-magento2 1.0.29

Steps to reproduce

1. Set up the extension making sure to select one list.
2. Create Webhook.
3. Add in that MailChimp list without doing nothing in Magento.
4. Change the configured list for the extension.

Expected result:

Subscriber not added to Magento and no errors thrown.

Actual result:

Error message thrown: Call to a member function count() on null in /chroot/home/diamond6/diamonddesignsuniforms.com/html/app/code/Ebizmarts/MailChimp/Cron/Webhook.php:191

Additional information

When trying to fetch the customer or subscriber for the store where the list is configured, it returns null because that list is not configured for any Magento scope.
count function can not be used in null.

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

Successfully merging a pull request may close this issue.

2 participants