Mailchimp is writing an exception to my logs every second. Here's the exception:
[2020-08-17 16:44:28] local.ERROR: Uncaught Symfony\Component\Finder\Exception\DirectoryNotFoundException: The "/Users/cblackwell/Sites/highland/vendor/edalzell/mailchimp/resources/views" directory does not exist. in /Users/cblackwell/Sites/highland/vendor/symfony/finder/Finder.php:589
Stack trace:
#0 /Users/cblackwell/Sites/highland/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(444): Symfony\Component\Finder\Finder->in('/Users/cblackwe...')
#1 Command line code(37): Illuminate\Filesystem\Filesystem->files('/Users/cblackwe...')
#2 Command line code(66): getViews('/Users/cblackwe...', Object(Illuminate\Filesystem\Filesystem), 'mailchimp', '::')
#3 {main}
thrown {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Uncaught Symfony\\Component\\Finder\\Exception\\DirectoryNotFoundException: The \"/Users/cblackwell/Sites/highland/vendor/edalzell/mailchimp/resources/views\" directory does not exist. in /Users/cblackwell/Sites/highland/vendor/symfony/finder/Finder.php:589
Stack trace:
#0 /Users/cblackwell/Sites/highland/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(444): Symfony\\Component\\Finder\\Finder->in('/Users/cblackwe...')
#1 Command line code(37): Illuminate\\Filesystem\\Filesystem->files('/Users/cblackwe...')
#2 Command line code(66): getViews('/Users/cblackwe...', Object(Illuminate\\Filesystem\\Filesystem), 'mailchimp', '::')
#3 {main}
thrown at /Users/cblackwell/Sites/highland/vendor/symfony/finder/Finder.php:589)
[stacktrace]
#0 {main}
"}
<?php
return [
/*
* If you want to add to your mailchimp audience when a user registers, set this to `true`
*/
'add_new_users' => false,
/*
* The form submissions to add to your Mailchimp Audiences
*/
'forms' => [
[
/*
* A MailChimp audience id. Check the MailChimp docs if you don't know
* how to get this value:
* https://mailchimp.com/help/find-audience-id/.
*/
'audience_id' => 'real-id-in-my-config',
/*
* if you need consent before you can subscribe someone, set this to `true`
*/
'check_consent' => false,
/*
* if you're checking for consent, which field is it? Defaults to `'consent'`
*/
'consent_field' => 'consent',
/*
* handle of the form to listen for
*/
'form' => 'downloadable',
/*
* See https://mailchimp.com/help/manage-audience-signup-form-fields/ for details on
* Mailchimp merge fields
*/
'merge_fields' => [
[
'tag' => 'FNAME',
'field_name' => 'first_name',
],
[
'tag' => 'LNAME',
'field_name' => 'last_name',
],
[
'tag' => 'LANDING',
'field_name' => 'url',
],
[
'tag' => 'COMPANY',
'field_name' => 'company',
],
[
'tag' => 'JOB_TITLE',
'field_name' => 'job_titlez',
],
],
/*
* To have single opt in only, which I don't recommend, set this to `true`.
* See: https://mailchimp.com/help/single-opt-in-vs-double-opt-in/ for details
*/
'disable_opt_in' => true,
],
],
];