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.

Catchable fatal error: While Creating Campaign using Constant Contact PHP SDK

AlbertoV1
Health Practitioners & Centers

Catchable fatal error: While Creating Campaign using Constant Contact PHP SDK

Hi,

 

I am using latest CC PHP SDK. and when I try to create campaing using that SDK I encountered with the following error can anyone please guide me how to resolve this issue?

 

Catchable fatal error: Argument 1 passed to Ctct\Components\EmailMarketing\Campaign::create() must be of the type array, null given, called in \src\Ctct\Services\EmailMarketingService.php on line 31 and defined in src\Ctct\Components\EmailMarketing\Campaign.php on line 200

 

 

many thanks in advance. prompt reply will be highly appreciated.

 

 

1 REPLY 1
Elijah_G
Member

Hello,

 

After reviewing the code, it sounds like you're running into an error due to a failure to create the email campaign. When you downloaded the SDK did you get the code directly, or did you use the latest release on Github? I ask because there are some differences between the two that may change how we can troubleshoot the issue.

 

Also, are you still seeing this error when you try to add an email campaign to your Constant Contact account?

 

Sincerely,

Elijah G.
API Support Engineer
Developer Portal

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

Visit Page