The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

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
Highlighted
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

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured