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
I'm on Craft CMS 4.2.3 and installed Campaign Pro just now.
In the initial setup process, I added email settings successfully and then moved to the "Sendout Settings" screen next. The only thing I tried to change on this screen was the "Memory Limit." I did not add a contact.
Hitting "Save" shows an error screen with the error:
Cannot assign string to property putyourlightson\campaign\models\SettingsModel::$defaultNotificationContactIds of type ?array
This happens on line 280 of putyourlightson/craft-campaign/src/controllers/SettingsController.php.
The text was updated successfully, but these errors were encountered:
I can reproduce this with Craft 4.2.5.1 and Campaign Lite 2.1.9, specifically from Campaign → Settings → Sendout Settings saving while Default Notification Contacts is empty. (This doesn’t happen while saving Sendouts themselves, just that default setting.)
It looks like SettingsModel::$defaultNotificationContactIds is getting an empty string when it wants null or an array.
I’ll let Qualified People respond, and for now suggest that you simply Don’t Do That™.
I'm on Craft CMS 4.2.3 and installed Campaign Pro just now.
In the initial setup process, I added email settings successfully and then moved to the "Sendout Settings" screen next. The only thing I tried to change on this screen was the "Memory Limit." I did not add a contact.
Hitting "Save" shows an error screen with the error:
This happens on line 280 of putyourlightson/craft-campaign/src/controllers/SettingsController.php.
The text was updated successfully, but these errors were encountered: