Argument 1 passed to Ctct\Components\Contacts\Contact::create() must be an array
-
Like so many people, I’m getting the Argument 1 passed to Ctct\Components\Contacts\Contact::create() must be an array, null given error.
So far I’ve traced it to parent::getRestClient()->post returning a null response in addContact() found on line 62 of vendor/constantcontact/constantcontact/src/Ctct/Services/ContactService.php.
All 3 parameters going into the post have data so I know the submitted form data gets this far.
I don’t know enough about the constant contact api to know if the Authorization: Bearer or api_key tokens are bad. I turned on all of the logging checkboxes but don’t see where the logfile would be. I’m guessing it doesn’t get written since the plugin crashes with the null exception.
Brian
- The topic ‘Argument 1 passed to Ctct\Components\Contacts\Contact::create() must be an array’ is closed to new replies.