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

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

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

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

Register for our "Making Sense of Online Marketing for Retail" Webinar

Join us on Thursday, August 13th at 2pm ET for a free webinar where we'll discuss how to incorporate online marketing into your retail store.

Read More
Featured