dotmailer / dotmailer-magento2-extension

The official Dotdigital for Magento2 extension
https://dotdigital.com/integrations/magento
MIT License
48 stars 64 forks source link

Error on CRON after saving consent on customer account #629

Closed VictorSoaresRedstage closed 3 months ago

VictorSoaresRedstage commented 3 months ago

Hello,

We have a store running on Adobe Commerce on PREM - 2.4.5-p7, with 2 websites, 2 stores and 2 store views. Extension on latest version 4.25.2 with SMS consent enable.

If we save "General Subscription" on /connector/customer/index with checkbox checked, a value is saved on the table "email_contact_consent" with column "consent_text" equals NULL, throwing an error on the cron:

dotdigital.DEBUG: Error exporting consent data for contact: [vsoares@redstage.com]["Dotdigital\Exception\ValidationException: Dotdigital\V3\Models\Contact\ConsentRecord::setText(): Argument #1 ($text) must be of type string, null given, called in .../magento/vendor/dotdigital/dotdigital-php/src/V3/Models/AbstractSingletonModel.php on line 77 in .../vendor/dotdigital/dotdigital-php/src/V3/Models/AbstractSingletonModel.php:61

image

sta1r commented 3 months ago

Thanks - we need to make this more robust, but all you need to do is set consent text Marketing Consent > SMS > SMS marketing consent text.

VictorSoaresRedstage commented 3 months ago

Thanks - we need to make this more robust, but all you need to do is set consent text Marketing Consent > SMS > SMS marketing consent text.

Thank you!