Deprecated function: Constant FILTER_SANITIZE_STRING is deprecated

Created on 3 May 2022, about 2 years ago
Updated 1 April 2024, 3 months ago

Problem/Motivation

Error message
Deprecated function: Constant FILTER_SANITIZE_STRING is deprecated in mailchimp_ecommerce_page_attachments() (line 7 of modules/contrib/mailchimp_ecommerce/mailchimp_ecommerce.module).
Deprecated function: preg_quote(): Passing null to parameter #1 ($str) of type string is deprecated in Drupal\Core\Path\PathMatcher->matchPath() (line 82 of core/lib/Drupal/Core/Path/PathMatcher.php).

Steps to reproduce

Install mailchimp_ecommerce & mailchimp modules and setup mailchimp settings.

Drupal version: 9.3.9
Module version: 2.0.0-beta1
PHP: 8.1
Mailchimp version: 2.0.2

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇫🇮Finland tvalimaa

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom c_archer Cumbria

    Can confirm the patch applies against 2.1.0-beta1

  • 🇩🇰Denmark kristofferrom

    Still getting the error after applying the patch, I'm afraid.

    Drupal version 9.5.11
    Module version 2.1.0-beta1
    Mailchimp version 2.2.2
    Php 8.1

    I'm going ahead and uninstalling as we're migrating away from Drupal anyways. Just thought you should know.

  • 🇨🇦Canada lindsay.wils

    I have successfully just applied this to 10.2.4 and the error message is gone. thanks

Production build 0.69.0 2024