[Membership 2 Pro] Mailchimp – Membership2 integration not working

After pasting in the MailChimp API and ticking the boxes that will add new subscribers to the mailing list, test users are still not being added to our mailing list. All looks fine from the membership 2 pro dashboard. please adivse.

  • Nastia
    • Ex Staff

    Hello cryptotickerr

    I trust you’re doing well!

    Would you please clarify, are test users newly registered users or users that already exist on a site? Would you please replace the class-ms-model-relationship.php file in

    wp-content/plugins/membership-pro/app/model/

    With the one attached in here?

    Please let me know if the fix will work. If note, please grant access to your site from WPMU DEV > Support so we could have a closer look.

    Kind regards,

    Nastia

  • cryptotickerr
    • WPMU DEV Initiate

    Hi Nastia,

    Unfortunately, after replacing the file as specified, the signup is still not including the new user in the MailChimp list. In fact, they are no longer even included as members after replacing the old file with the new one I got.

    This is coupled with another problem, that the PayPal payment protal is not showing with the sign-up page.

    Please let us know the next steps – granting access to a WPMV to the site?

    Thanks,

  • Nastia
    • Ex Staff

    Hello cryptotickerr

    Hope all is well!

    I’d like to have a closer look at the situation here, could you please send in the following via our secure contact form?

    – Mark to my attention, the subject line should contain only: ATTN: Nastia

    – Do not include anything else in the subject line, doing so may delay our response due to how email filtering works.

    – Link back to this thread

    – Include WordPress admin access details (login address, username & password)

    – Include FTP log-in details (hostname, username & password)

    – Include any relevant URLs for your site

    Looking forward to your email!

    Kind regards,

    Nastia

  • Nastia
    • Ex Staff

    Hello cryptotickerr

    I trust you're doing well!

    I apologize for the late reply. The credentials you've shared with us, unfortunately not working. Would you please review them again and make sure the passwords are correct?

    I've tested the fixed shared above and it is working from my end. From the Membership 2 > Settings > MailChimp, please make sure the "Automatically opt-in new users to the mailing list." option is enabled, so the members would be automatically added in to the MailChimp list. Please see this screenshot:

    [attachments are only viewable by logged-in members]

    This is coupled with another problem, that the PayPal payment protal is not showing with the sign-up page.

    The PayPal button on your site is there and it is functional, only the icon is not showing because of the "Cross-Origin Read Blocking" error.

    [attachments are only viewable by logged-in members]

    To fix this error please add the following in the .htaccess file

    <IfModule mod_headers.c>
    <FilesMatch ".(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
    Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
    </IfModule>

    Looking forward to your reply.

    Kind regards,

    Nastia

  • cryptotickerr
    • WPMU DEV Initiate

    Hi Nastia,

    Thank you for your reply!

    I have sent the new ftp credentials under ATTN: Nastia so you are able to have a closer look.

    The “Automatically opt-in..” box is ticked the users are being added to one mailing list why disregarding the other.

    Also, could u kindly specify which .htaccess file should the code be added to? since my console is not showing the same error you have in the screenshot.

    Looking forward to hearing from you.

    Best,

  • Dimitris Kalliris
    • Support Team Lead

    Hello there cryptotickerr,

    hope you’re doing good today and don’t mind me chip in here! :slight_smile:

    The SFTP credentials you sent are working good, we’re going to need a WP admin user too though.

    As for the correct file that you should edit, this should be: /var/www/html/.htaccess

    Let us know if making the above change has a positive outcome during the registration process, for both adding the new user in the proper membership and proper MailChimp list.

    Thank you,

    Dimitris

  • Dimitris Kalliris
    • Support Team Lead

    Hello there cryptotickerr,

    hope you’re doing good and don’t mind me chip in here! :slight_smile:

    I got your email, there’s no need to resend it. I replied to it though, as the credentials aren’t working.

    I’d also like to mention that you should avoid posting multiple replies, as we work from older to newer thread and these are getting sorted based on the latest reply, so doing this can affect the response time negatively.

    Reference: https://wpmudev.com/docs/getting-started/getting-support/#chapter-1

    Warm regards,

    Dimitris

  • Dimitris Kalliris
    • Support Team Lead

    Hello there cryptotickerr,

    hope you’re doing well today! :slight_smile:

    I was able to get the updated WP admin credentials and had a look at your settings. It seems that you’re using a wrong label for the PayPal button. Please navigate to Membership 2 -> Settings -> Payment -> PayPal Standard Gateway and in the “Payment button label

    or URL” use an image link coming from your site or a simple text string. This should resolve the mixed-content errors as there’s no need for a PayPal button link, and this should also resolve the Mailchimp issue as users are going to be able to pay for their memberships.

    If the Mailchimp issue isn’t resolved with that, please send us another email as mentioned above as it seems that the SFTP credentials you’ve sent, aren’t working anymore.

    Warm regards,

    Dimitris

  • cryptotickerr
    • WPMU DEV Initiate

    hi Dimitris !

    Hope you’re having a good day! :slight_smile:

    I added the button code on wp page and added that to the “Payment button label

    or URL” but I’m not being reverted to the payment method when pressing sign up the memberships page.

    Also I sent over the requested ftp credentials.

    Thank you ,

    cryptotickerr

  • Dimitris Kalliris
    • Support Team Lead

    Hello cryptotickerr,

    I trust you’re doing good today!

    As mentioned in my previous reply, this field is for a simple text or a link of an image, not of a Paypal button. I replaced that with “PAY WITH PAYPAL” and my testing user is being redirected to Paypal indeed. Please do check for yourself and let me know how that goes! :slight_smile:

    My testing user is also getting some MailChimp emails, so he should be listed in the corresponding list for guests.

    Warm regards,

    Dimitris

  • cryptotickerr
    • WPMU DEV Initiate

    Hi Dimitris

    Thank you so much for following up.

    I see you subscribed to one of the lists but the API did not seem to add you to the second mailing list (which was the entail problem)

    While signing up from ‘.. .com/memberships’ I’m still not being redirected to the payment process. I’m being directed to the sign-up page instead.

    Hope there is a way to solve this problem. :slight_smile:

    Thanks again

    cryptotickerr

  • Dimitris Kalliris
    • Support Team Lead

    I see you subscribed to one of the lists but the API did not seem to add you to the second mailing list (which was the entail problem)

    My testing user (username: dimitris) didn’t actually get paid for the membership as you’re using a live Paypal connection, so no membership is assigned to him.

    While signing up from ‘.. .com/memberships’ I’m still not being redirected to the payment process. I’m being directed to the sign-up page instead.

    I’m still unable to replicate, I even got another colleague of mine to double check and he could reach the Paypal’s site after registration page (/sign-up/).

    Could you please clear/purge all caches involving to this installation (from plugins and any server-side caching) and use a clean browser in incognito mode?

    https://www.refreshyourcache.com/en/home/

    Let us know if that made any difference.

    Warm regards,

    Dimitris