• Resolved smsWp

    (@smswp)


    Hello,

    I’m getting a “Could not connect to Constant Contact” popup message when I try to add a test contact via the plugin. Strangely, if I hit submit again with the same settings, it goes through fine but it never works on the first try. This occurs every time I refresh the page in both Chrome and Firefox.

    I am running a fresh install of WP 3.9.1 on my local machine (so I can’t point you at a URL, sorry!) and version 1.8.2 of the widget. Any idea where this issue may be coming from? All of my settings should be correct since it works the second time so I suspect something weird is happening with the CC API.

    Thanks in advance for any help!

    https://wordpress.org/plugins/constant-contact-widget/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MembershipWorks

    (@sourcefound)

    Hi smsWp! It may be an issue with your local server setup. To get the complete error message, edit the plugin and locate this line 55:

    echo __(‘Could not connect to Constant Contact’);

    Replace that with

    echo $rsp->get_error_message();

    That will give you the full error message from WordPress to help you debug this further…

    Thread Starter smsWp

    (@smswp)

    Thanks very much for the quick response.

    Using that error handling line I’m now getting 2 error messages:

    1) name lookup timed out

    2) Operation timed out after 2837 milliseconds with 0 out of -1 bytes received

    Where there is variation in the time in (2) but it looks like the time is always over 2 seconds. So I imagine there is a ~2s timeout limit somewhere on the CC side.

    I googled around a bit and only found a few dead ends (for example). Any thoughts going forward?

    Thanks again for your time.

    Plugin Author MembershipWorks

    (@sourcefound)

    Hi smsWp! That seems to be an issue with your local server, not with Constant Contact. It appears that the domain name lookup (where your server tries to resolve the domain name for the constant contact server) is taking too long. You will want to check your DNS server setup.

    Thread Starter smsWp

    (@smswp)

    Fair enough- I’ll check back in to confirm whether or not the problem persists once the site goes live. Thanks again for your help.

    Thread Starter smsWp

    (@smswp)

    Yep- looks like that was the issue after all. Thanks again for the support and a very useful plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot connect to CC on first try’ is closed to new replies.