Fatal Error when using getLists PHP SDK


Fatal Error when using getLists PHP SDK



I believe this may be caused by the TLS 1.2 update...


We are suddenly getting the following error when trying to get a users email lists.


Fatal error: Call to a member function getBody() on a non-object in /vendor/constantcontact/constantcontact/src/Ctct/Services/BaseService.php on line 105


Is there a way  to fix this?



Thank you for reaching out to Constant Contact's API Support.

Based on the information in that error message, I believe you are using our PHP SDK 3.0 alpha release, as the BaseService.php in our last fully supported release only has ~85 rows. In that alpha release version, line 105 is retrieving an error response message from an exception. This may be related to the TLS 1.2 requirement, however it is not likely if this is the only function returning an error, and other methods work fine. Are you seeing this with any other methods, or just this one?

Would you be able to provide a snippet of the code you are using to get the lists for an account?

David B.
Tier II API Support Engineer

Developer Portal

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

Visit Page