Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previous subscribers can't resubscribe to list if they've unsubscribed in the past (regardless of "Update existing subscribers?" setting) #93

Closed
1 task done
MaxwellGarceau opened this issue Dec 24, 2024 · 2 comments
Assignees
Labels
type:bug Something isn't working.

Comments

@MaxwellGarceau
Copy link
Collaborator

MaxwellGarceau commented Dec 24, 2024

Describe the bug

If a subscriber tries to subscribe to a list they've unsubscribed from then the FE will throw a generic "Email Address: Please fill out a valid email address" error. The 400 response on the BE from Mailchimp indicates that user "is in a compliance state due to unsubscribe, bounce, or compliance review and cannot be subscribed".

The error occurs whether or not the "Update existing subscribers?" option is checked.

Response from Mailchimp
wordpress-1  | [Tue Dec 24 19:04:44.609083 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] args, referer: http://localhost:8888/?p=8
wordpress-1  | [Tue Dec 24 19:04:44.609175 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] Array
(
    [method] => PUT
    [timeout] => 10
    [redirection] => 5
    [httpversion] => 1.1
    [user-agent] => Mailchimp WordPress Plugin/http://localhost:8888
    [headers] => Array
        (
            [Authorization] => Bearer 9cf7be3c9d2e49209d623f72adeb7b00
        )
    [body] => {"email_address":"[email protected]","email_type":"html","merge_fields":{},"interests":{},"status":"subscribed"}
), referer: http://localhost:8888/?p=8

wordpress-1  | [Tue Dec 24 19:04:44.609186 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] url, referer: http://localhost:8888/?p=8
wordpress-1  | [Tue Dec 24 19:04:44.609190 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] https://us19.api.mailchimp.com/3.0/lists/3dc5a6c6c8/members/d4ba8092058018001923a6911cb5a04e, referer: http://localhost:8888/?p=8

⠧ wordpress-1  | [Tue Dec 24 19:04:44.853261 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] request, referer: http://localhost:8888/?p=8
wordpress-1  | [Tue Dec 24 19:04:44.853379 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] Array
(
    [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [content-type] => application/problem+json; charset=utf-8
                    [content-length] => 206
                    [x-spanid] => 018ea980-1ddf-fd9d-f710-1d3da1abbe17
                    [x-amzn-trace-id] => Root=1-676b05cc-40a99229482333653d21eb5f
                    [content-encoding] => gzip
                    [x-content-type-options] => nosniff
                    [link] => <https://us19.api.mailchimp.com/schema/3.0/Definitions/ProblemDetailDocument.json>; rel="describedBy"
                    [server] => istio-envoy
                    [vary] => Accept-Encoding
                    [x-envoy-upstream-service-time] => 104
                    [x-envoy-decorator-operation] => http-interposer-desired-service.mailchimp-cloud-httpinterposer-use2-prd-m2.svc.cluster.local:8090/*
                    [strict-transport-security] => max-age=31536000
                    [intuit_tid] => 1-676b05cc-40a99229482333653d21eb5f
                    [x-request-id] => 1-676b05cc-40a99229482333653d21eb5f
                    [date] => Tue, 24 Dec 2024 19:04:44 GMT
                )
        )
    [body] => {"title":"Member In Compliance State","status":400,"detail":"[email protected] is in a compliance state due to unsubscribe, bounce, or compliance review and cannot be subscribed.","instance":"43ec3596-e49c-7e87-5afb-4549081af428"}
    [response] => Array
        (
            [code] => 400
            [message] => Bad Request
        )
), referer: http://localhost:8888/?p=8

wordpress-1  | [Tue Dec 24 19:04:44.853438 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] body, referer: http://localhost:8888/?p=8
wordpress-1  | [Tue Dec 24 19:04:44.853499 2024] [php:notice] [pid 25:tid 25] [client 172.18.0.1:55426] Array
(
    [title] => Member In Compliance State
    [status] => 400
    [detail] => [email protected] is in a compliance state due to unsubscribe, bounce, or compliance review and cannot be subscribed.
    [instance] => 43ec3596-e49c-7e87-5afb-4549081af428
), referer: http://localhost:8888/?p=8

Steps to Reproduce

  1. Subscribe to a Mailchimp webform
  2. Check your email and verify the email if necessary
  3. Unsubscribe that email using the unsubscribe link that can be enabled in the Mailchimp options page. Follow the unsubscribe flow until you receive an unsubscribed confirmation message.
  4. Attempt to resubscribe the unsubscribed user in a Mailchimp webform. You will receive a generic "Email Address: Please fill out a valid email address"

Screenshots, screen recording, code snippet

Subscriber can not resubscribe walkthrough

subscriber-can-not-resubscribe-walkthrough.mov

Environment information

  • Macbook Air
  • OS: 14.6
  • Chrome 131.0.6778.205

WordPress information

`

wp-core

version: 6.7.1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: undefined
https_status: false
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: local
user_count: 1
dotorg_communication: true

wp-paths-sizes

wordpress_path: /var/www/html
wordpress_size: 267.05 MB (280024919 bytes)
uploads_path: /var/www/html/wp-content/uploads
uploads_size: 0.00 B (0 bytes)
themes_path: /var/www/html/wp-content/themes
themes_size: 44.76 MB (46934953 bytes)
plugins_path: /var/www/html/wp-content/plugins
plugins_size: 378.09 MB (396457466 bytes)
fonts_path: /var/www/html/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 4.72 MB (4947968 bytes)
total_size: 694.62 MB (728365306 bytes)

wp-active-theme

name: Twenty Twenty-Five (twentytwentyfive)
version: 1.0
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, post-formats, editor-style
theme_path: /var/www/html/wp-content/themes/twentytwentyfive
auto_update: Disabled

wp-themes-inactive (14)

Twenty Eleven: version: 4.8, author: the WordPress team, Auto-updates disabled
Twenty Fifteen: version: 3.9, author: the WordPress team, Auto-updates disabled
Twenty Fourteen: version: 4.1, author: the WordPress team, Auto-updates disabled
Twenty Nineteen: version: 3.0, author: the WordPress team, Auto-updates disabled
Twenty Seventeen: version: 3.8, author: the WordPress team, Auto-updates disabled
Twenty Sixteen: version: 3.4, author: the WordPress team, Auto-updates disabled
Twenty Ten: version: 4.3, author: the WordPress team, Auto-updates disabled
Twenty Thirteen: version: 4.3, author: the WordPress team, Auto-updates disabled
Twenty Twelve: version: 4.4, author: the WordPress team, Auto-updates disabled
Twenty Twenty: version: 2.8, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Four: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 2.4, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Three: version: 1.6, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.9, author: the WordPress team, Auto-updates disabled

wp-plugins-active (1)

Mailchimp: version: 1.6.2, author: Mailchimp, Auto-updates disabled

wp-plugins-inactive (1)

Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 aarch64 2021-01-25 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 1G
upload_max_filesize: 1G
max_effective_size: 1 GB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 122 MB
imagick::RESOURCETYPE_DISK: 1073741824
imagick::RESOURCETYPE_FILE: 786432
imagick::RESOURCETYPE_MAP: 512 MB
imagick::RESOURCETYPE_MEMORY: 256 MB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF
ghostscript_version: 10.00.0

wp-server

server_architecture: Linux 6.10.14-linuxkit aarch64
httpd_software: Apache/2.4.62 (Debian)
php_version: 8.2.27 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: -1
upload_max_filesize: 1G
php_post_max_size: 1G
curl_version: 7.88.1 OpenSSL/3.0.15
suhosin: false
imagick_availability: true
pretty_permalinks: true
current: 2024-12-24T19:21:49+00:00
utc-time: Tuesday, 24-Dec-24 19:21:49 UTC
server-time: 2024-12-24T19:21:49+00:00

wp-database

extension: mysqli
server_version: 11.4.4-MariaDB-ubu2404
client_version: mysqlnd 8.2.27
max_allowed_packet: 16777216
max_connections: 151

wp-constants

WP_HOME: http://localhost:8888
WP_SITEURL: http://localhost:8888
WP_CONTENT_DIR: /var/www/html/wp-content
WP_PLUGIN_DIR: /var/www/html/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: local
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: not writable

`

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MaxwellGarceau MaxwellGarceau added the type:bug Something isn't working. label Dec 24, 2024
@jeffpaul jeffpaul added this to the 1.7.0 milestone Jan 3, 2025
@MaxwellGarceau
Copy link
Collaborator Author

MaxwellGarceau commented Jan 6, 2025

This bug is on the Mailchimp account side
This is intended functionality by Mailchimp.

If a contact wants to resubscribe they have to do it through the Mailchimp hosted sign up form. They can't be resubscribed through the API.

@MaxwellGarceau
Copy link
Collaborator Author

Closing issue as it was discovered there was no bug. Continued in enhancement idea #117 for better integration and error handling.

@jeffpaul jeffpaul removed this from the 1.7.0 milestone Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants