URL change from HTTP to HTTPS creates new Store in MailChimp
-
Okay, so we stumbled into another bug in your “mailchimp-for-woocommerce”.
We just switched to HTTPS everything, and started enforcing HTTPS.
But, once the enforcing was put in place, boom. The plugin’s API synchronization stopped working. Why? Why, why.. Why us!? (and other dramatic sounds)Here’s why:
File: wp-content/plugins/mailchimp-for-woocommerce/mailchimp-woocommerce.php Line: 62 Code: function mailchimp_get_store_id() { return md5(get_option('siteurl')); }
You generate the Store ID by hashing the
siteurl
variable, and that variable just got updated fromhttps://example.com
tohttps://example.com
. Same domain, but different protocol.
So now your plugin tries to sync data using a Store ID that does not exists in MailChimp! And it fails, obviously, throwing exception like this one:
“Resource Not Found :: The requested resource could not be found.” (which makes sense, because there is no such store in MailChimp)
This exception is thrown at:wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php:1001
Before figuring this out, I went through your plugin’s settings. In absolutely no place does it say it’s screwed up, or that the store ID has changed, or that I should update the store’s domain in MailChimp. It says absolutely nothing to warn us about this potential issue.
And, after clicking the Save button, it created a new (empty) store in MailChimp.And I don’t even know what does this mean for us, what are the implications. When the segments are updated based on E-commerce criteria (like Orders_count and Total_spent), will it look in both lists from now on? If yes, how it will decide which is the Total_spent? Or will it only look in the newest (empty) store?
I did everything the book, and even so, my client got screwed up and is paying hours and hours for hunting down & debugging your bugs, and for remediation of problems that shouldn’t exist if you would’ve thoroughly tested your product.
Is this fair to my client, MailChimp?
- The topic ‘URL change from HTTP to HTTPS creates new Store in MailChimp’ is closed to new replies.