Forum

Thread tagged as: Problem, Error, MailChimp

Mail chimp perch resubscribe email not working - Urgent !!!

Hi,

I have an urgent issue to fix... I need to deploy code today itself... please help...

I had integrated mail chimp with my staging site and every thing was working fine. When I moved my code to production, its not working.

I am unable to resubscribe from perch now. User don't get confirm email from mail chimp.

Here is my code

<perch:form id="subscribe" app="perch_mailchimp" double-optin="true" send-welcome="false" novalidate="novalidate">
        <h2>Unsubscribe</h2>
        <div class="field subcribeText">
            <a href="https://caldolor.us7.list-manage.com/unsubscribe?u=b45fd0d5879a653cb6b96cfa9&id=72d618781d" target="_blank">Click here to unsubscribe from updates on the eCompendium and on the Seqirus pain portfolio (Caldolor, Palexia, and Versatis)</a>
        </div>
        <h2>Resubscribe</h2>
        <div class="field subcribeText">
            <p>If you wish to resubscribe to updates on the eCompendium and on the Seqirus pain portfolio (Caldolor, Palexia, and Versatis), complete the fields below</p>
        </div>
        <br>
        <div class="field">
            <perch:label for="first_name">First name</perch:label>
            <perch:input type="text" id="first_name" required="true" label="First name" class="textbox" mailer="FNAME"/>
            <perch:error for="first_name" type="required"><span class="requiredMessage">Please enter your name</span></perch:error>
        </div>
        <div class="field">
            <perch:label for="last_name">Last name</perch:label>
            <perch:input type="text" id="last_name" required="true" label="Last name" class="textbox" mailer="LNAME"/>
            <perch:error for="last_name" type="required"><span class="requiredMessage">Please enter your name</span></perch:error>
        </div>
        <div class="field">
            <perch:label for="email">Email</perch:label>
            <perch:input type="email" id="email" required="true" label="Email" class="textbox" placeholder="you@company.com" helper="PerchMembers_Members::check_email_exists" mailer="email"/>
            <perch:error for="email" type="required"><span class="requiredMessage">Please enter your email address</span></perch:error>
        </div>

        <br>
        <perch:input type="submit" id="btnsubmit" value="RESUBSCRIBE >" class="button large"/>
        <perch:input type="hidden" value="1" id="confirm" mailer="confirm_subscribe" />
        <br><br>

        <perch:success>
            <div class="success bigMargin">
                <p>An email has been sent to you. Please confirm to subscribe</p>
            </div>
        </perch:success>
        <perch:error>
            <div class="error bigMargin">
                <p>There was an unexpected error.</p>
            </div>
        </perch:error>
</perch:form>
  1. Here is file path... perch\addons\apps\perch_members\templates\members\forms

  2. I can see my page loading using perch_member_form('subscription.html');

  3. I have updated to latest perch version

  4. Can see subscribers in mail chimp as well as in perch mailChmip app...

  5. I have deleted webhooks and set them again, imported subscribers from mail chimp.

  6. Re-checked the list ID and mailchimp api key.

  7. Deleted mailChimp table in perch also

  8. Remove mailchimp secret key from perch_setting table also

  9. Checked the mailer tags as per documentation.

  10. also i have verified domain and authenticated DKIM in mailChimp...

  11. Debug msgs don't show any change after submitting form

Debug Message
[1] SELECT * FROM perch2_members_sessions WHERE sessionID='09c367d2fa2b3516b06254767d55a4d35e3250ff' AND sessionHttpFootprint='a73ffe11e980d7d9b90a0369c6dd9afbb0d42f95' AND sessionExpires>'2016-04-01 01:25:52' LIMIT 1
User is logged in
[1] SELECT * FROM perch2_pages WHERE pagePath='/perch/core/runway/start.php' LIMIT 1
[25] SELECT p.pagePath, pr.routePattern, pr.routeRegExp, p.pageTemplate FROM perch2_pages p LEFT JOIN perch2_page_routes pr ON p.pageID=pr.pageID ORDER BY pr.routeOrder ASC, p.pagePath ASC
Matched page: /subscription, so not using routes.
Using master page: /templates/pages/masterseries/subscription.php
[26] SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
[1] SELECT COUNT(*) FROM perch2_members WHERE memberEmail=abcd@gmail.com'
[1] SELECT * FROM perch2_pages WHERE pagePath='/subscription' LIMIT 1
Using template: /templates/pages/attributes/seo.html
[2] SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/subscription' OR regionPage='*' ORDER BY regionPage DESC
Using template: /addons/apps/perch_members/templates/members/forms/subscription.html
Request time: 0.7281
Process time: 0.7274
Memory: 4.3246
  1. Diagnostics reports
SUMMARY INFORMATION

Perch Runway: 2.8.27, PHP: 5.4.38, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.27), assets (2.8.27), categories (2.8.27), collection_14 (2.8.27), collection_12 (2.8.27), collection_17 (2.8.27), collection_10 (2.8.27), perch_forms (1.8.3), collection_8 (2.8.27), perch_mailchimp (2.0.1), collection_9 (2.8.27), perch_members (1.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_members', 'perch_forms', 'perch_mailchimp' ); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/calmaster/public_html/perch
PERCH_CORE: /home/calmaster/public_html/perch/core
PERCH_RESFILEPATH: /home/calmaster/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 2M, Max POST 8M, Memory: 32M, Total max file upload: 2M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/calmaster/public_html
HTTP_HOST: www.xxxxxx.com.au
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Few points to note: 1. Allow unsubscribe from link or from link inside my site. But if i unsubscribe again ... not error. 2. Similarly give success msg but no confirmation mail sent to user... 3. Saw 212 List_InvalidUnsubMember in mailChimp API call log

Last 24 hours of API calls About Date/Time

Date/Time   Result  Throttled?  Source IP   Method  Format  Exec Time   User Agent  Ver Response
2016-04-01 01:28:58 GMT     nope    202.129.244.131 lists/subscribe json    0.112s  PerchCMS/2.0    2.0 (212) List_InvalidUnsubMember
2016-04-01 01:25:52 GMT     nope    202.129.244.131 lists/subscribe json    0.117s  PerchCMS/2.0    2.0 (212) List_InvalidUnsubMember

I doubt the msg is getting received my mail chimp... Some configuration issue..

Suggestions please...

Vinay Jagessar

Vinay Jagessar 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are any updates successfully pushing to MailChimp?

  1. If I add or unsubscribe, it update on both mailchimp and perch mailchimp app in admin.
  2. If do single opt-in using my registration page it subscribe the new user.
  3. If i do double Opt-in = "true" for re-subscribtion from my website it is not sending mail to user to confirm resubscription

Every thing was working fine in staging but user can't resubscribe on production.

Does any specify entry in db table can effect the behavior...

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's the difference between staging and production?

I don't know. For me it should work fine... Well I removed mail chimp integration and did a work around.

Hope Perch had better support and better documentation...

Drew McLellan

Drew McLellan 2638 points
Perch Support

You've been getting a lot of support, but this sort of issue is hard to diagnose - we can only work with the information you give us.

Yes,

I got support but that didn't solve most of my issues. For almost for all of them I have to find a workaround.

I agree fixing issues is hard job. However bought a paid product (perch) with negligible online blogs or documentation, it very hard to build and customized websites.

Do you think with such high open issues anyone working on perch will suggest Perch to anyone else (Hardly anyone know Perch).

In my view Perch should improve documentation (to decrease learning curve) and add more support (more than 2 people) to have satisfied customers.

I am sorry to use harsh words but there is lot of scope from Perch side, rest its your company, you people are experts...

Drew McLellan

Drew McLellan 2638 points
Perch Support

I'm sorry you feel that way.