Error when sending test email, what now ?

Gore

Member
Argument 2 passed to CampaignHelper::getSubscriberFieldsSearchReplace() must be an instance of Campaign, instance of ListSubscriber given, called in /var/www/mailwizz/latest/apps/customer/controllers/CampaignsController.php on line 1375 and defined
 
This is a bug alright :)
Can you open that file, go to line 1375 and transform it from:
PHP:
$searchReplace = CampaignHelper::getSubscriberFieldsSearchReplace($campaign, $subscriber);
into
PHP:
$searchReplace = CampaignHelper::getSubscriberFieldsSearchReplace($emailContent, $campaign, $subscriber);

That should fix the issue.
 
Back
Top