Mailchimp status fix + Colorbox/DOMPurify libraries¶
Datum: 9 januari 2026
Omgeving: Live (voedingsgeneeskunde.nl / prev)
Doel¶
- Mailchimp statusrapport-foutmelding ("MCAPI wrapper library not installed correctly") oplossen.
- Colorbox en DOMPurify JavaScript libraries installeren en statuswaarschuwingen verwijderen.
Inhoud¶
Mailchimp MCAPI wrapper status fix¶
- Statusrapport toonde fout: "The Mailchimp MCAPI wrapper library has not been installed correctly."
- Oorzaak:
mailchimp.settings:api_classnamewas leeg. - Oplossing:
- Config-sleutel gezet naar
Mailchimp\Mailchimpvia drush config:set. - Bevestigd met drush php:eval dat
class_exists('Mailchimp\Mailchimp')true retourneert. - Cache geleegd.
- Resultaat: Statusrapport toont nu "The Mailchimp MCAPI wrapper library is installed correctly." (OK).
Colorbox library installatie¶
- Statusrapport miste:
/libraries/colorbox. - composer require npm-asset/colorbox faalde (asset-packagist 404).
- Manuele installatie:
- Directory aangemaakt:
libraries/colorbox/ - Colorbox 1.6.4 gedownload van GitHub en uitgepakt.
- Bevestigd:
libraries/colorbox/jquery.colorbox-min.js(12K).
DOMPurify library installatie¶
- Statusrapport miste:
/libraries/DOMPurify/dist/purify.min.js. - Manuele installatie:
- Directory aangemaakt:
libraries/DOMPurify/dist/ - DOMPurify 3.2.2 gedownload van jsDelivr CDN.
- Bevestigd:
libraries/DOMPurify/dist/purify.min.js(22K).
Resultaat/Oplossing¶
- Mailchimp MCAPI wrapper statusmelding is groen (severity OK).
- Colorbox en DOMPurify libraries aanwezig in
/libraries/. - Na cache rebuild (via web UI) zouden alle library-statuswaarschuwingen weg moeten zijn.
Commando's¶
# Mailchimp api_classname fix
drush config:set mailchimp.settings api_classname 'Mailchimp\Mailchimp' -y
drush php:eval "echo class_exists('Mailchimp\\Mailchimp') ? 'OK' : 'FAIL';"
drush cr
# Libraries installatie
mkdir -p libraries/colorbox libraries/DOMPurify/dist
curl -sL https://github.com/jackmoore/colorbox/archive/refs/tags/1.6.4.tar.gz | tar xz --strip-components=1 -C libraries/colorbox
curl -sL https://cdn.jsdelivr.net/npm/dompurify@3.2.2/dist/purify.min.js -o libraries/DOMPurify/dist/purify.min.js
ls -lh libraries/colorbox/jquery.colorbox-min.js libraries/DOMPurify/dist/purify.min.js
Open punten¶
- Cache rebuild via web UI (admin/config/development/performance) uitvoeren om library detection te voltooien.
- Optioneel: libraries documenteren in composer.json of README voor toekomstig onderhoud.
Tags¶
[Mailchimp, Libraries, Statusrapport, Colorbox, DOMPurify]