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
(Two bug reports in one day, sorry but it's just a bad day!)
When users sign-up from an on-website form they are sent an email (this is the default one, I've not changed the template).
This includes a link and upon following that link they get an error.
This is: Typed property putyourlightson\campaign\models\PendingContactModel::$mailingListId must not be accessed before initialization
This has been working fine as far as I'm aware and has just started the problem with version 2.1.14 (plus Craft 4.3.0). I am using PHP 8.1.
It was reported by a visitor, but I've been able to reproduce exactly the same error upon signing up myself.
Line 189 in in /vendor/putyourlightson/craft-campaign/src/controllers/FormsController.php: $mailingList = Campaign::$plugin->mailingLists->getMailingListById($pendingContact->mailingListId);
The text was updated successfully, but these errors were encountered:
This is caused by a breaking change in Yii 2.0.46 and was fixed in Campaign 2.1.14, however it appears one property was missed! Fixed in 1b7240a and released in 2.1.15.
(Two bug reports in one day, sorry but it's just a bad day!)
When users sign-up from an on-website form they are sent an email (this is the default one, I've not changed the template).
This includes a link and upon following that link they get an error.
This is:
Typed property putyourlightson\campaign\models\PendingContactModel::$mailingListId must not be accessed before initialization
This has been working fine as far as I'm aware and has just started the problem with version 2.1.14 (plus Craft 4.3.0). I am using PHP 8.1.
It was reported by a visitor, but I've been able to reproduce exactly the same error upon signing up myself.
Line 189 in in
/vendor/putyourlightson/craft-campaign/src/controllers/FormsController.php
:$mailingList = Campaign::$plugin->mailingLists->getMailingListById($pendingContact->mailingListId);
The text was updated successfully, but these errors were encountered: