You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error during Form Synchronization with Campaign Plugin: API Error on Newsletter Subscription
Description:
We are encountering an issue when a form is synchronized with the Campaign Plugin. The newsletter subscription is not being correctly passed to the plugin, leading to an API error.
Error Message:
Failed
API Error: "putyourlightson\campaign\services\FormsService::createAndSubscribeContact(): Argument #1 ($email) must be of type string, null given, called in /home/wiqusaha/public_html/jcb/vendor/verbb/formie/src/integrations/emailmarketing/Campaign.php on line 158"
/home/wiqusaha/public_html/jcb/vendor/putyourlightson/craft-campaign/src/services/FormsService.php:153
It appears that the error occurs because the $email argument is being passed as null instead of a string, as expected. This happens when the form tries to create a contact and subscribe them to the newsletter.
Steps to reproduce
A form is used to process a newsletter subscription.
The form is synchronized with the Campaign Plugin.
The API error described above is triggered during the processing.
Expected Behavior:
The email address should be correctly passed to the Campaign Plugin so that the newsletter subscription can be completed without errors.
Form settings
Multi-page form: No
Submission Method: Page Reload
Client-side Validation: Yes
Custom Form Templates: No
Versions
Craft CMS: 5.3.2
Formie: 3.0.1
Campaign: 3.4.2
The text was updated successfully, but these errors were encountered:
Seems to be all working okay on my end, sorry. Looks like there's not a value for the email? If it's saying that it's null, sounds like something is going on, as that should never happen being a required mapping field.
Describe the bug
Error during Form Synchronization with Campaign Plugin: API Error on Newsletter Subscription
Description:
We are encountering an issue when a form is synchronized with the Campaign Plugin. The newsletter subscription is not being correctly passed to the plugin, leading to an API error.
Error Message:
It appears that the error occurs because the $email argument is being passed as null instead of a string, as expected. This happens when the form tries to create a contact and subscribe them to the newsletter.
Steps to reproduce
Expected Behavior:
The email address should be correctly passed to the Campaign Plugin so that the newsletter subscription can be completed without errors.
Form settings
Versions
Craft CMS: 5.3.2
Formie: 3.0.1
Campaign: 3.4.2
The text was updated successfully, but these errors were encountered: