1

I'm trying to set up this Mailchimp extension for CiviCRM, but I got this error :

mailchimp error

So I tried to create a new webhook in Mailchimp, but when I copy-paste the webhook URL that CiviCRM gave me ( https://www.mywebsite.org/civicrm?page=CiviCRM&q=civicrm/mailchimp/webhook&reset=1&key=xxxxxxxx ) I got this message in Mailchimp :

We couldn't verify the URL is working. Please double check and try again. HTTP Code: 500

I tested this link in my browser and it seems to work when I am connected to my Wordpress site, and it displays an error 500 when I am not connected.

So I thought that this problem could be solved by changing the permission for anonymous users in WordPress Access Control ( civicrm/admin/access/wp-permissions ) but the only users displayed on the list are :

  • Editor
  • Author
  • Contributor
  • Subscriber
  • Civicrm editor
  • SEO Manager
  • SEO Editor

This "anonymous user" role doesn't exist and even if I check all permission boxes for all users in the "Mailchimp: allow webhook posts" line , the link always returns an error 500.

What can I do to make this URL working ?

Thanks for any help!

  • Have you tried a urlencoded version of your webhook URL? It's possible that the WordPress redirect_canonical() function is causing a redirect to a properly-formatted URL before CiviCRM has a chance to receive the payload. EDIT: by which I mean the URL should look like https://www.mywebsite.org/civicrm?page=CiviCRM&q=civicrm%2Fmailchimp%2Fwebhook&reset=1&key=xxxxxxxx – Christian Wach Nov 15 '18 at 13:26
1

WordPress does not require that a role be given to users who only visit your site (e.g. to read posts) so long as it is public - roles are only required when logging in. However, for a WordPress client using the MailChimp sync, we found that we needed to create an Anonymous User role with the webhook permissions assigned - once you do this, pasting the webhook in MailChimp should no longer result in an error.

To clarify, no one has to be assigned the Anonymous User role for this to work.

Hope this helps! Tamar

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.