cancel
Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

Fatal Error when using getLists PHP SDK

Highlighted
Occasional Visitor

Fatal Error when using getLists PHP SDK

Hi,

 

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?

Tags (4)
1 REPLY 1
Moderator

Re: Fatal Error when using getLists PHP SDK

Hello,

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?

Sincerely,
David B.
Tier II API Support Engineer