getCampaignId errors when no session

Created on 25 October 2024, about 2 months ago

Problem/Motivation

If you don't have a session (e.g. running via cron), getCampaignId errors.

Proposed resolution

This will fix it using PHP8 and later.

MailchimpEcommerceHelper.php
line 110:
$session_campaign = $this->request->getSession()->get('mc_cid', '');
should change to
$session_campaign = $this->request->getSession()?->get('mc_cid', '');

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia susie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024