Open motorzen opened 5 years ago
Thanks for reporting! I’ll see if I can reproduce and add better error handling for that scenario. The most recent update was supposed to fix non-success responses from Constant Contact but apparently I missed something.
Hi, thanks for this plugin!
This may be an odd and unlikely case, but I thought I'd report it in case there's a fix that can be reasonably effected.
Conditions for replication:
Using a signup form with the plugin succeeds with a new email address as expected
Using a signup form with an email address already subscribed to the CC list provides the flash "You're already subscribed to this list" as expected
Using a signup form with an email address that has been added previously to the CC list, but has been manually removed at CC website results in a Craft CMS Internal Server error with the following message:
Argument 1 passed to madebyraygun\constantcontact\lib\ConstantContactClient::updateContact() must be an instance of madebyraygun\constantcontact\lib\object, instance of stdClass given, called in /home/pathtoapp/public_html/vendor/madebyraygun/constant-contact/src/services/ConstantContactService.php on line 134
There are more details to the error which I can provide if needed, but it seems pretty easy to reproduce at this time.