ctctWrapper.php error question

Occasional Participant

ctctWrapper.php error question

 Hello,


When I call


 $email_search = $ContactsCollection->searchByEmail($email);


I get the following error ONLY if the email isn't found. 


Fatal error: Call to a member function Attributes() on a non-object in ctctWrapper.php on line 987


It appears this link object isn't being created. Any ideas on how to work around this and use this or another function to keep duplicate emails from being submitted via the API?

2 REPLIES 2
Employee

Hello,


I would like to apologize for this problem, I am going to take a look at the wrapper now and try to get this resolved as soon as possible. Once I have this working, I will upload the wrapper and let you know here. If you have any questions please let me know.


Sincerely,

Benjamin Soder
NOC Analyst
Constant Contact
Employee

Hello,



I have fixed the searchByEmail function so that it now returns false if the search results do not return anything.  The updated file is now up on our Sourceforge account.  If you have any questions or comments please let me know!



Regards,

Benjamin Soder
NOC Analyst
Constant Contact
Developer Portal

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

Visit Page