Giter VIP home page Giter VIP logo

pmpro-mailchimp's Introduction

=== Paid Memberships Pro - Mailchimp Add On ===
Contributors: strangerstudios, dlparker1005, paidmembershipspro
Tags: paid memberships pro, pmpro, mailchimp, email marketing
Requires at least: 5.2
Tested up to: 6.5
Stable tag: 2.3.6

Add users and members to Mailchimp audiences based on their membership level and allow members to opt-in to specific audiences.

== Description ==

Subscribe WordPress users and members to your Mailchimp audiences.

This plugin offers extended functionality for [membership websites using the Paid Memberships Pro plugin](https://wordpress.org/plugins/paid-memberships-pro/) available for free in the WordPress plugin repository. 

With Paid Memberships Pro installed, you can specify unique audiences for each membership level, as well as opt-in audiences that a member can join as part of checkout or by editing their user profile. By default, the integration will merge the user's email address and membership level information. You can send additional user profile details to Mailchimp [using the method described here](https://www.paidmembershipspro.com/send-additional-user-information-fields-mailchimp/).

The settings page allows the site admin to specify which audience lists to assign users and members to plus additional features  you may wish to adjust. The first step is to connect your website to Mailchimp using your account's API Key. Here's how to find the API key in Mailchimp:

https://www.youtube.com/watch?v=ctcy1_npmRE

= Additional Settings =

* **Non-member Audiences:** These are the audiences that users will be added to if they do not have a membership level. They will also be removed from these audiences when they gain a membership level (assuming the audiences are not also set in the “Membership Levels and Audiences” option for their new level).
* **Opt-in Audiences:** These are the audiences that users will have the option to subscribe to during the PMPro checkout process. Users are later able to update their choice from their profile. Audiences set as Opt-in Audiences should not also be set as a Non-member Audience nor a Level Audience.
* **Require Double Opt-in?:** If set to “Yes (All audiences)”, users will be set to “Pending” status in Mailchimp when they are added to an audience instead of being subscribed right away. They will then receive an email from Mailchimp to opt-in to the audience.
* **Unsubscribe on Level Change?:** If set to “No”, users will not be automatically unsubscribed from any audiences when they lose a membership level. If set to “Yes (Only old level audiences.)”, users will be unsubscribed from any level audiences they are subscribed to when they lose that level, assuming that audience is not a Non-Member audience as well. If set to “Yes (Old level and opt-in audiences.)”, users will also be unsubscribed from opt-in audiences when they lose their membership level (though they can re-subscribe by updating the setting on their profile).
* **Update on Profile Save:** If set to “Yes”, PMPro will update Mailchimp audiences whenever a user’s profile page is saved. If set to “No”, PMPro will only update Mailchimp when a user’s membership level is changed, email is changed, or chosen opt-in audiences are changed.
* **Log API Calls?:** If set to “Yes”, API calls to Mailchimp will be logged in the `/pmpro-mailchimp/logs` folder.
* **Membership Levels and Audiences:** These are the audiences that users will automatically be subscribed to when they receive a membership level.

== Installation ==
This plugin works with and without Paid Memberships Pro installed.

= Download, Install and Activate! =
1. Upload the `pmpro-mailchimp` directory to the `/wp-content/plugins/` directory of your site.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Navigate to Settings > PMPro Mailchimp to proceed with setup.

= Configuration and Settings =

**Enter your Mailchimp API Key:** Your Mailchimp API key can be found within your Mailchimp account under Account > Extras > API keys. If you don't have a Mailchimp account, [you can create one here](http://eepurl.com/k4aAH). Read our documentation for a [video demonstrating how to locate your Mailchimp API key](https://www.paidmembershipspro.com/add-ons/pmpro-mailchimp-integration/#api-key).

After entering your API Key, continue with the setup by assigning User or Member Audiences and reviewing the additional settings.

For full documentation on all settings, please visit the [Mailchimp Integration Add On documentation page at Paid Memberships Pro](https://www.paidmembershipspro.com/add-ons/pmpro-mailchimp-integration/). 

Several action and filter hooks are available for developers that need to customize specific aspects of the integration. [Please explore the plugin's action and filter hooks here](https://www.paidmembershipspro.com/add-ons/pmpro-mailchimp-integration/#hooks).

== Frequently Asked Questions ==

= I found a bug in the plugin. =

Please post it in the issues section of GitHub and we'll fix it as soon as we can. Thanks for helping. [https://github.com/strangerstudios/pmpro-mailchimp/issues](https://github.com/strangerstudios/pmpro-mailchimp/issues)

= I need help installing, configuring, or customizing the plugin. =

Please visit [our support site at https://www.paidmembershipspro.com](http://www.paidmembershipspro.com/) for more documentation and our support forums.

== Screenshots ==

1. General Settings for plugin, including the non-member audiences opt-in rules, and unsubscribe rules.
2. Specific settings for Membership Levels and Audiences.

== Changelog ==
= 2.3.6 - 2024-03-27 =
* SECURITY: Now preparing SQL statements.
* SECURITY: Improved escaping of strings.
* ENHANCEMENT: Added translator comments for placeholders.

= 2.3.5 - 2024-03-08 =
* SECURITY: Now adding a randomized suffix to the log file name to prevent unauthorized access. #138 (@dparker1005)
* SECURITY: Now preventing access to the `/log/` directory listing. #138 (@dparker1005)
* ENHANCEMENT: Added a filter `pmpromc_update_audience_members_data` to allow modifying data sent to the `/lists/{$audience}` Mailchimp endpoint. #137 (@efc)

= 2.3.4 - 2023-11-15 =
* SECURITY: Now obfuscating email domains in debug logs. #135 (@andrewlimaza)
* ENHANCEMENT: Updating `<h3>` tags to `<h2>` tags for better accessibility. #133 (@kimwhite)
* REFACTOR: No longer pulling the checkout level from the `$_REQUEST` variable. #132 (@dparker1005)

= 2.3.3 - 2023-03-01 =
* ENHANCEMENT: Improved formatting of opt-in audience section on checkout page. (@mircobabini)
* ENHANCEMENT: Added filter `pmpromc_log_path` to allow changing the path where API calls are logged. (@JarrydLong)
* BUG FIX/ENHANCEMENT: Now using `readfile()` during CSV export if `fpassthru()` is not available. (@JarrydLong)
* REFACTOR: Marking the `set_user_interest()` method as deprecated. (@dparker1005)

= 2.3.2 - 2021-03-02 =
* ENHANCEMENT: Added setting to log API calls sent to Mailchimp in the `pmpro-mailchimp/logs` folder.
* ENHANCEMENT: Added a pmpromc_user_data filter to filter user data taht is sent to Mailchimp.
* ENHANCEMENT: Audience checkboxes are now shown as scrollable list on settings page if there are more than 5.
* BUG FIX/ENHANCEMENT: Added CSS class for checkbox labels.
* BUG FIX/ENHANCEMENT: Now passing a valid user object when generating CSV export file headers.
* BUG FIX: Fixed undefined variable in pmpromc_user_register() (Thanks, x140l31 on GitHub).
* BUG FIX: Fixed required parameter being included after optional parameters in add_merge_field().
* BUG FIX: Fixed URL to PMPro support page (Thanks, majerus1223 on GitHub).


= 2.3.1 - 2020-04-28 =
* ENHANCEMENT: Added support for Paid Memberships Pro v2.3+ front-end profile edit page.
* ENHANCEMENT: Now using checkboxes to select audiences instead of <select> fields

= 2.3 - 2020-03-25 =
* FEATURE: Subscriptions/unsubscriptions in Mailchimp now carry over to PMPro for opt-in audiences
* ENHANCEMENT: Added setting to update contact in Mailchimp whenever profile is saved
* ENHANCEMENT: Included audience names in debug logs and improved error reporting
* BUG FIX: Fixed issue where contacts may be created in an unsubscribed status in opt-in audiences they had not subscribed to
* BUG FIX: Fixed issue where contacts would not be removed from non-member audiences when they are given a level
* BUG FIX: Fixed strings using the incorrect text domain
* BUG FIX: Fixed ampersands in names being encoded when sent to Mailchimp
* BUG FIX: Resolved PHP warning in API function in_merge_fields()
* BUG FIX/ENHANCEMENT: Contacts in Mailchimp are now updated when a user’s email is changed instead of being replaced
* REFACTOR: Organized code into different files

= 2.2.1 - 2019-12-31 =
* BUG FIX: Fixed merge fields not being sent during user profile updates
* BUG FIX: Fixed logging for Mailchimp API calls
* BUG FIX: Fixed Mailchimp updates not being sent during wp_redirect filter

= 2.2 - 2019-12-19 =
* BUG FIX: Fixed email address updates via profile.
* BUG FIX: Fixed "Invalid API Key" error that would sometimes occur with newer API keys.
* ENHANCEMENT: Using "Audience" instead of "List" in strings throughout the plugin for consistency with Mailchimp's name changes.
* ENHANCEMENT: Using "Mailchimp" instead of "MailChimp" in strings throughout the plugin for consistency with Mailchimp's name changes.
* ENHANCEMENT: Removed default columns besides email from Mailchimp CSV export. Now using the pmpro_mailchimp_listsubscribe_fields filter instead.
* ENHANCEMENT: Users are now unsubscribed from all opt-in audiences when they cancel membership.
* BUG FIX/ENHANCEMENT: Mailchimp subscriber updates are processed using the /lists/ API endpoint to prevent rate limiting by Mailchimp. This fixes issues that would sometime occur when many members were expired on the same day.
* BUG FIX/ENHANCEMENT: Users who cancel are now unsubscibed from audiences instead of being deleted from Mailchimp.
* BUG FIX/ENHANCEMENT: Now using the Mailchimp member "status" property when unsubscribing members instead of deleting them.

= 2.1.2 =
* BUG FIX: Checking for 204 status when unsubscribing. We were checking for 200 before and throwing an error incorrectly.
* BUG FIX: Fixed bug where users weren't unsubscribed from MailChimp when they expired. A further refactoring is needed to avoid hitting the MailChimp API limit if many users are processed at once.
* BUG FIX/ENHANCEMENT: The "All Users" label was changed to "Non-member Users" to match how the setting is actually used.

= 2.1.1 =
* BUG FIX: Fixed issues with error handling and the display of error messages. Specifically, entering an incorrect API key will no longer crash the settings page. (Thanks, Hugh Brock)

= 2.1 =
* BUG: Fixed a variety of bugs related to the MailChimp API, including a bug introduced in v2.0.3 that sometimes kept the plugin from subscribing users to lists.
* BUG/ENHANCEMENT: Doing a better job of limiting the number of API requests made to avoid API limits.
* ENHANCEMENT: Supports the pmpro-multiple-memberships-per-user Add On.
* ENHANCEMENT: Added localization support. (Now should be able to create language files via GlotPress)

= 2.0.3 =
* BUG: Fixed issue with updating email addresses in MailChimp when email addresses are updated in WordPress.
* ENHANCEMENT: Added a filter pmpromc_profile_update that you can set to __return_true to tell the addon to synchronize user data on every profile update. By default, PMPro MailChimp will only synchronize data if the email address has changed. Filter passes $update_user, $user_id, and $old_user_data and is documented in the code.

= 2.0.2 =
* BUG: Fixed issue where the wrong subscriber id was being used for subsequent API calls when calls were made for more than one subscriber (e.g. when importing, bulk updating, or members are expiring).
* BUG: Fixed other warnings, typos, and minor bugs.
* ENHANCEMENT: Added filter (`pmpro_addon_mc_api_timeout`) to modify API connection timeout (default is 10 seconds which should be plenty!)


= 2.0.1 =
* BUG: Fixed bug where "additional opt-in lists" were causing fatal errors at checkout if set.

= 2.0.0 =
* FIX/ENHANCEMENT: Removed the v2 MailChimp API class and now using our own API class based on MailChimps v3 API.
* FEATURE: Now adding PMPLEVEL and PMPLEVELID merge fields for users added to lists. These can be used to create segments and groups in MailChimp.
* FEATURE: Added a link on the settings page to export a CSV file formatted specifically for importing into MailChimp. This can be used to import existing members into MailChimp as new subscribers or just to update the merge fields for existing subscribers.

= 1.2 =
* Updated the MailChimp API used to have a $verify_ssl property that controls the CURLOPT_SSL_VERIFYPEER option of the CURL connection. This is set to false by default, avoiding some issues people have had connecting to the MailChimp API.

= 1.1 =
* Added option for passing membership level to MailChimp as a custom field.

= 1.0.7 =
* ENHANCEMENT: Mailing Lists section of edit profile page doesn't show up if there are no lists set for "opt-in lists".
* BUG: Not showing the "additional lists" options on the review page when using PayPal Express/Standard/etc. (Thanks, Christopher Souser)
* BUG: Fixed some warnings.

= 1.0.6 =
* BUG: Avoiding warnings when unsubscribing. (Thanks, Adam Shaw)

= 1.0.5 =
* ENHANCEMENT: Won't try to subscribe/unsubscribe if the user doesn't have an email address. Doesn't come up often in WP, but can.
* BUG: Fixed bug where if users unchecked all optional lists options, the plugin would not remove them from the lists. (Thanks, Darlene)

= 1.0.4 =
* BUG: Avoiding warnings in some cases where levels have been deleted.

= 1.0.3 =
* BUG: Removed add_settings_error call to avoid fatal error on front end. Wasn't using it.

= 1.0.2 =
* BUG: Better error handling when invalid API keys are entered.

= 1.0.1 =
* BUG: Fixed some warnings and fatal errors if site is run with an empty or invalid API key.

= 1.0 =
* Admitting that we're officially released with a 1.0 version. :)
* Now using Mailchimp v2.0 API.

= .3.6.2 =
* Updated code to make sure that when checking out, sub adds run on pmpro_after_checkout instead of pmpro_after_change_membership_level.

= .3.6.1 =
* Fixed some warnings that would show up if the plugin was not connected to the API yet.

= .3.6 =
* Now 3 options for the "Unsubscribe on Level Change" option. No, Yes (Only old level lists.), and Yes (All other lists.).
* Fixed possibly issues introduced in the .3.5 version.

= .3.5 =
* Added the "Opt-in Lists" that will show up on the PMPro checkout page as checkboxes allowing the member to opt into one or more lists.
* Instead of unsubscribing users from all lists when changing membership levels (before adding them back to lists for the new membership level), we only unsubscribe users from the lists that were selected for their old level. For example, if list #1 is given to a user for level 1, users changing away from level 1 will only be unsubscribed from list #1. They will remain on any other list they might have gotten outside of PMPro MailChimp.

= .3.4 =
* Fixing SQL warning when running PMPro Mailchimp without PMPro. (Thanks, kateM82)

= .3.3 =
* Added option to turn of unsubscribes entirely. If you manage multiple lists in MailChimp and have users subscribe outside of WordPress, you may want to choose No so contacts aren't unsubscribed from other lists when they register on your site.

= .3.2 =
* Updated pmpro_mailchimp_listsubscribe_fields filter to pass the $list_user object along as well.

= .3.1 =
* Updating email addresses in MailChimp lists if a user's email address is changed.

= .3 =
* Added pmpro_mailchimp_listsubscribe_fields filters to add fields passed the listSubscribe API call.
* Changed some things to make sure that the user cache is clean and the listSubscribe call happens late enough so that first and last name are populated.

= .2.2 =
* First logged release with a readme.
* Added a "Require Double Opt-in" setting that will determine if an additional opt in email is sent for confirmation before adding users to a list. Defaults to "No".

pmpro-mailchimp's People

Contributors

andrewlimaza avatar bilua-xiaolei avatar dparker1005 avatar efc avatar eighty20results avatar github-actions[bot] avatar greathmaster avatar hbrock25 avatar ideadude avatar ipokkel avatar jarrydlong avatar kimcoleman avatar kimwhite avatar lmntl avatar majerus1223 avatar messica avatar mircobabini avatar sjolshagen avatar square-lines avatar travislima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pmpro-mailchimp's Issues

Not sending all registrations

Is there something up with the current version? It's only sending one or two of the registrations properly out of dozens.

Request - use Groups in addition to Lists

This may not be the best place to post this but I wasn't sure where to send it.

Rather than putting customers on separate lists, I would prefer to just put them on Groups under a main list. Or at least I'd like the option to.

It would simplify things for me when sending out emails through MailChimp. Sometimes I want to email all of my customers, not just a specific list. I have to duplicate my campaign multiple times to be able to email all customers. If I had them in groups, I'd still have the option to send automated campaigns to specific groups, but could send an email to all customers when needed.

2.1 fails to sync with Mailchimp

Since updating to 2.1 adding people to a membership plan fails to sync with mailchip.

Rolling back to 2.0.3 fixed the issue for me (just replaced the plugin files, no DB rollback)

I'm running Wordpress 4.7.5 with PMP 1.9.3

Let me know if I can help debugging this.

Plug in does not seem to be working

I have your plugin and the Paid Memberships Pro plugin installed on my site and have gone through and verified all the settings. I've entered my API key and am able to see and select the Mailing List I want people added to, however, when people sign up, they are not being added to the list.

I am using a "Free" sign up option which is not collecting a First and Last name...could this be the issue, and if so, how do we get around it?

Bug: MailChimp API sending DELETE requests for users

MailChimp API seems to be sending DELETE requests for users, without members unsubscribing or being expired. I'm only aware of One user having this issue at the moment.

The MailChimp API would use the PATCH or PUT method to update an existing subscriber, and they would need to be updating the status parameter from subscribed to unsubscribed. The documentation for that endpoint can be found here on the Edit tab:
https://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/#%20

Allow user's to Opt-in at another point besides checkout

A user would like the ability to allow members to opt-in to lists besides on the checkout page. This would need to include the user's membership level and pass it to MailChimp.

Maybe a shortcode that will allow user's to update their opt-in preferences that can be embedded or shown on the user's profile page?

MailChimp "welcome email" not sent when users are added to list

I've integrated different membership sign ups with various mailchimp lists. Users are added to lists correctly. Unfortunately, users do not receive the "final welcome email" for the lists when they are added, regardless of the checkbox setting for this feature in the mailchimp admin.

Is there a known issues with disabling the welcome email even if enabled within the mailchimp admin?

FEATURE REQUEST: Inform admins if required MERGE fields in Mailchimp are not set from PMPro

Invalid MERGE fields are a common reason users are not subscribed to a Mailchimp list. Usually, the MERGE field is set as "Required" in Mailchimp but not included in the data submitted at checkout. Mailchimp rejects such signups since the "Required" field is not set.

Similar case is if the MERGE field is included but is in the improper format. Mailchimp will also reject these sign ups.

We could look up the required MERGE fields and compare when a user checks out.

Resource: https://developer.mailchimp.com/documentation/mailchimp/reference/lists/merge-fields/

Plugin Error Blank

Hi there, for the latest version of PMPPro Mailchimp 1.0.6, when activated with version of WP 4.0.1 does not activate properly ... just simply leaves a blank white screen. Any ideas on potential incompatibility?

Limited to 15 Mailchimp lists

Is there a reason why this plugin limits the lists pulled through for the API to 15?

I am building a site for a client who has around 50 lists in mailchimp and as a result the one created specifically for the members is not showing.

Is there anyway around this or is it set this way to stop too many calls to the API or something?

Fatal error

Hello team,

When activating this plugin I get the following fatal error:

Fatal error: Call to a member function ping() on a non-object in /www/linkmm/mercur2015/mercur2015/blog/wp-content/plugins/pmpro-mailchimp/pmpro-mailchimp.php on line 76

And the whole site crashes.
Am using Wordpress 4.1.1.

Can you help?

Only pulls in 15 lists

The plugin only pulls in 15 lists. If there are more than 15 lists in the account, some are cut off, making them unavailable.

First/Last Name not pushing to subscriber on create member

When creating a used through the wordpress admin, the first/last name are populated through to mailchimp. But, if creating a user on PMP checkout (with first/last added to the checkout form & post to wp) only email is populated to the subscriber in mailchimp.

first name and last name require

how can I make the first_name and last_name required on the registration form and then that will be also be catched by the mailchimp mailing list?

Screws with other mailchimp software

The theme I am using (SweetDateWP - which is built on using the PM Pro plugin).

I receive this error when using its newsletter sign up form.

Fatal error: Cannot redeclare class MCAPI in /wp-content/themes/sweetdate/framework/widgets/mailchimp/MCAPI.class.php on line 3

Is this a theme error or plugin error - you never replied to my other post a month ago about the plugin screwing up the widgets area in wordpress.

2.1.1 fails to "even attempt to access MailChimp API"

I just installed pmpro Version 1.9.4.1 with pmpro-mailchimp 2.1.1.

When I attempt to enter the mailchimp API I get the following error:

Sorry, but MailChimp was unable to verify your API key. MailChimp gave this response:
401: API Key Invalid. Detail: Your API key may be invalid, or you've attempted to access the wrong datacenter.
Please try entering your API key again.

I checked with MailChimp to see what was happening on their end. They said:
"I don't even see an attempt to access our API on the backend... usually we would see a call coming in and then failing for a number of reasons but the call log is blank."

Some notes:

  • I first attempted to use an existing api, and when that did not work, I created a new one. Same results.
  • I deleted the plug-ins and downloaded them from your website and reinstalled those in case there was some difference between that and the WP repository, no luck.
  • I do have a Gravity Forms Mail Chimp add-on, but when I disable that, same thing.
  • When I first installed this yesterday I had not updated Wordpress to 4.9 so I did that (now 4.9.1) and that did not help. In short, same issue with a 4.8 version and a 4.9 version of wp.
  • This is a sub-site on multisite.

PMPRO LEVEL not added to the mailchimp list.

I'm using the PMPRO plugin (Version 2.0.5) and PMPRO mailchimp integration addon (Version 2.1.1).

The subscription to newsletter upon checkout is working but no PMPEVELID is submitted.
I can see the entry inside Mailchimp but without the PMPLEVEL or PMPLEVELID values.

Fails to sync

I have no idea if this is a conflict with any of the PMPRO add-ons I have running - I suspect it might be the Register Helper, however I need to be able to capture First Name and Last Name.

Simply put ---
The Mailchimp sync doesn't work.
Lists appear okay for all levels,
They just don't sync.

This doesn't make me want to sign up for a paid account!

listsubscribe wrong # args

fills logs with:

PHP Warning: Missing argument 3 for pmpromc_pmpro_mailchimp_listsubscribe_fields() in /usr/share/nginx/hcacademy/wp-content/plugins/pmpro-mailchimp/pmpro-mailchimp.php on line 1307

Sorry, but MailChimp was unable to verify your API key.

Hi, this plugin has been working on my site for some time, but a couple of days ago I believe it stopped. My API seems to be fine otherwise. Can you help? Thank you.

Sorry, but MailChimp was unable to verify your API key. MailChimp gave this response:
We received an unexpected error: null
Please try entering your API key again.

SSL CA cert issue

I want to integrate this plugin with PMPro, but when i enter my API key, i get this following error.

"Sorry, but MailChimp was unable to verify your API key. MailChimp gave this response:

API call to helper/ping failed: Problem with the SSL CA cert (path? access rights?)
Please try entering your API key again."

Deselecting chosen opt-in mail list cannot be done

I have selected an opt-in MailChimp list for on checkout on options-general.php?page=pmpromc_options but now we no longer want it. We want zero lists. Seems though I can only deselect one by selecting another. How can this be done? Seems like a bug to me.

Is the a built-in way to capture First Name and send that to MailChimp?

Seems by default the PMP process captures the WP Username and Email. Awesome.
However, Mailchimp does not use the Username field. It wants First or Last name.
So at the moment, all I can automatically capture into Mailchimp is the email address. However, in my Mailchimp campaigns, I'd like to include the users name, as in "Hi Fred," instead of "Hi ,".

Currently the only work around is to use Autochimp by By Wanderer LLC Dev Team, which allows the WP Username field to be mapped to the MailChimp FNAME field. I then ask the MailChimp subscriber to check their First Name detail and edit it if they want.

I'd prefer a system that by default entered all the WP name fields and provided an easy mapping system into the MailChimp fields. I'm not a coder.

Just stopped working

I migrated from Digital Ocean to WP-Engine and PMP MailChimp add-on just stopped working. No users are added to associated lists after signup.

Bug: Not working with Add Member, WooCommerce Add Ons

The Add On is not subscribing new members created with the Add Member Add On. This is probably due to the way subscriptions are queued and later processed during redirects which might be affecting other Add Ons and functionality as well.

2.1 error handling code for connecting to mailchimp fails

Symptom: Installing the plugin on a system with an expired API key makes the plugin settings screen blank. In the logs, this error appears:

PHP Fatal error: Call to a member function get_error_message() on array in /usr/share/nginx/harpcolumn/wp-content/plugins/pmpro-mailchimp/includes/class.mailchimp.api.php on line 122

The root cause is that the code calls $response->get_error_message() on the http response object, which in the case of a 401 is an array, not a wp_error object.

I have a pull request that fixes this that I will attach to this issue.

BUG: pmpromc_processSubscriptions() is not being run after member is added via PMPro Add Member Add-On

Steps to recreate:

  1. Add user to WordPress site
  2. Set a level to add users to Mailchimp audience when checking out
  3. Use Add Member page to give user that level

Expected: User will be added to Mailchimp lists for that user
Result: User not added

Debugged a bit and the list is successfully added to the queue of lists to subscribe to, but the subscribe() call in pmpromc_processSubscriptions() is never run.

Bug: Users are not being cancelled from MailChimp when they are unsubscribed at the payment gateway.

Users are not being cancelled from MailChimp when they are unsubscribed at the payment gateway.
This is happening because we are only processing the $pmpromc_users_to_unsubscribe queue when redirecting to another page. Webhook, IPN handlers, etc. do not redirect so the queue does not get processed.

add_action('template_redirect', 'pmpromc_processUnsubscriptions', 2);
add_filter('wp_redirect', 'pmpromc_processUnsubscriptions', 100);

Support Ticket (Moderators Only)
https://www.paidmembershipspro.com/forums/topic/mailchimp-unsubscribe-failing-with-stripe-failed-payments/

cancelled members not deleted on mailchimp

I was testing this and saw that if a member cancelled on my site, the mailchimp list still keep them in the list. Is this by design?

I would like for this plugin to delete the members from the mailchimp list as well if the member cancelled their subscription. Is that possible?

thanks

Lei

Fatal Error when adding API key

Fatal error: Call to a member function get_error_message() on array in /plugins/pmpro-mailchimp/includes/class.mailchimp.api.php on line 122

Feature Request: Make level specific Opt-In Lists

Currently, the selected opt-in lists will show for all membership levels. This could be updated to show the opt-in lists based on levels as well. The ideal solution would be a modification to the GUI where lists can be specified as "opt-in" or "automatically subscribed to" for each level.

A more immediate solution could be to filter the opt-in lists in the pmpromc_additional_lists_on_checkout() function.

No lists and no errors showing after entering API Key

Having issues getting the new plugin to pass data to the API.

Several reported issues on word press.org
https://wordpress.org/support/topic/no-lists-found-after-entering-api?replies=4#post-8733545

Attempted complete code removal and reinstall no success. 1.x versions work 2.x versions Fail

Also the code base appears to be on a older API. MailChimp is only going to support API v4 come 2017 and it looks like the API code base for this plugin is on a earlier version.

Widgets Page - Sidebar disappears.

This plugin causes jQuery issues - on the widgets page, the sidebar disappears also.

chrome developer tools displays a jquery issue also.

Also cannot click things like screen options anymore either.

Disable the plugin, issue gone.

Wordpress 3.5... and now just updated to wordpress 3.6.1 and the problem is still there.

Merg fields invalid

When a new user subscribes it is not added to the corresponding mailchimp lists.

Mailchimp returns an error showing:

2016-04-15 17:51:05 GMT 
    nope    173.254.28.58   PUT /lists/.../members/.../ php 0.108s  WordPress/pmpro_addon_mc;http:  3.0 Your merge fields were invalid. 

I now need to manually add new members into the mailing list.

Using
WP: 4.4.2
PMP: 1.8.9
Mailchimp Addon: 2.0.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.