We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Constant Contact API Delete List problem

Occasional Participant

Constant Contact API Delete List problem

I am using Constant Contact API plugin for wordpress.
it shows me error when i try to delete any list.
Error: FAILED TO DELETE CONTACT LIST: Sorry there was a problem processing your request. The error given was Unknown Error.

Also i am getting same message for adding list, however list got added in API.

I am attaching log file and screenshot for this problem, please provide the solution ASAP.






Request URL:
string(77) "https://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists/234"

    [body] =>
    [headers] => DELETE /ws/customers/hurricanegrillandwings/lists/234 HTTP/1.1
Host: api.constantcontact.com
Content-Type: text/html
User-Agent: justphp 2.0
Content-Length: 0
Accept: application/atom+xml
Authorization:  Basic ZDk0ZWVjOTgtM2ZjYy00ODJmLWI0YmItM2ViYmRkYjE5YzdhJWh1cnJpY2FuZWdyaWxsYW5kd2luZ3M6aDFnNXc5
Connection: Close

    [method] => DELETE
    [sslverify] =>
    [timeout] => 120
    [httpversion] => 1.1

array(4) {
  array(11) {
    string(5) "close"
    string(4) "1327"
    string(46) "application/atom+xml; type=entry;charset=UTF-8"
    string(29) "Mon, 06 Jun 2011 11:09:18 GMT"

    string(78) "private, no-cache, no-store, max-age=0, must-revalidate, no-cache="Set-Cookie""
    string(34) ""e74219190ea66ed2516bdd4e9de17657""
    string(8) "no-cache"
    string(6) "Apache"
    string(26) "Accept-Encoding,User-Agent"
    string(0) ""

    string(46) "BIGipServerProdAPI=189142026.6695.0000; path=/"
  string(1327) "
<entry xmlns="http://www.w3.org/2005/Atom">
  <link href="/ws/customers/hurricanegrillandwings/lists/234" rel="edit">
    <name>Constant Contact</name>

  <content type="application/vnd.ctct+xml">
    <contactlist xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists/234">

      <members id="http://api.constantcontact.com/ws/customers/hurricanegrillandwings/lists/234/members"></members>

    <link href="lists">
    <link href="lists" rel="self">

  array(2) {
    string(2) "OK"
  array(1) {
    object(WP_Http_Cookie)#31 (5) {
      string(18) "BIGipServerProdAPI"

      string(19) "189142026.6695.0000"
      string(1) "/"




And Here is the Screenshot for the problem:








The Constant Contact Word Press plugin is actually created by a third party developer.  He does offer support through a forum which you can find here.  While we do not normally offer support for third part plugins, I did take a look to see if I could recreate the error.


I am also able to recreate the problem that you are having, and did take a look at the code that is used to delete lists.  I did not see anything wrong with the code, but I am going to continue to do some research and see if I can find out what may be going on.  I also tested out the delete a list function on our API's end, and I was able to successfully delete lists from my account using the API.


If you have any questions please let me know.

Benjamin Soder
NOC Analyst
Constant Contact
Occasional Participant

Thanks for the reply.

Yes there is no issue with deletion of list after loggin in site's  account.


It is occuring with the Plugin.


I thought maybe there was some problem with the format of data sending to API,

because it is working fine with updating the list and also creating the list however showing error for creation.


Thanks if you can give me some solution after doing some research.


Developer Portal

View API documentation, code samples, get your API key.

Visit Page