Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Critical Error Renewing Members When MailChimp Plugin Enabled

Simple Membership Plugin › Forums › Simple Membership Plugin › Critical Error Renewing Members When MailChimp Plugin Enabled

  • This topic has 14 replies, 3 voices, and was last updated 2 years, 11 months ago by admin.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • April 12, 2023 at 5:59 pm #25942
    Jacqueline
    Participant

    Hi there,

    My website produces a critical error when I renew existing members when the MailChimp plugin is enabled. I can add new members with no issue.

    This is the error message from my site:

    Error Details
    =============
    An error of type E_ERROR was caused in line 325 of the file /home/public_html/wp-content/plugins/simple-membership-mailchimp-integration/swpm-mailchimp-action.php. Error message: Uncaught Error: Unsupported operand types in /home/public_html/wp-content/plugins/simple-membership-mailchimp-integration/swpm-mailchimp-action.php:325
    Stack trace:
    #0 /home/public_html/wp-content/plugins/simple-membership-mailchimp-integration/swpm-mailchimp-action.php(162): swpm_do_mailchimp_signup(Array)
    #1 /home/public_html/wp-includes/class-wp-hook.php(308): swpm_do_admin_edit_user_mailchimp_signup(Array)
    #2 /home/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
    #3 /home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /home/public_html/wp-content/plugins/simple-membership/classes/class.swpm-admin-registration.php(127): do_action(‘swpm_admin_end_…’, Array)
    #5 /home/public_html/wp-content/plugins/simple-membership/classes/class.swpm-init-time-tasks.php(68): SwpmAdminRegistration->edit_admin_end(155)
    #6 /home/public_html/wp-content/plugins/simple-membership

    Here are my site details:

    WordPress version 6.2
    Active theme: Divi (version 4.20.4)
    Current plugin: Simple Membership MailChimp Integration (version v1.9.4)
    PHP version 7.4.33

    Any suggestions?

    Thanks!!

    April 12, 2023 at 11:08 pm #25943
    The Assurer
    Moderator

    What happens when you temporarily use one of the default themes, instead of DiVi?

    April 13, 2023 at 1:33 am #25946
    admin
    Keymaster

    Which version of the Mailchimp addon are you using currently? Go to the plugins menu in your admin dashboard to check the version number.

    April 13, 2023 at 3:46 am #25950
    Jacqueline
    Participant

    Hi there,

    I’m using version v1.9.4

    April 15, 2023 at 6:49 am #25952
    admin
    Keymaster

    Looks like you have configured interest groups and the formatting is not correct. Please double check the interest group data and formatting that you have specified in each of the membership level. It needs to match according to what is specified on the following documentation:
    https://simple-membership-plugin.com/signup-members-mailchimp-list/

    April 16, 2023 at 8:36 pm #25958
    Jacqueline
    Participant

    Thank you, I’ll give that a try.

    April 16, 2023 at 8:43 pm #25959
    Jacqueline
    Participant

    Spoke too soon! I did notice that we had a capitalization difference in the list name and thought that might be the issue. But unfortunately, it didn’t resolve it. Here is the debug log (with personal details removed):

    [2023/04/16 13:37:47] – SUCCESS: [MailChimp] Mailchimp integration addon. Admin edit member hook.
    [2023/04/16 13:37:47] – SUCCESS: [MailChimp] Debug data: ABC members|hello@xxxxxx.ca|Name|Name
    [2023/04/16 13:37:47] – SUCCESS: [MailChimp] Doing list signup.
    [2023/04/16 13:37:47] – SUCCESS: [MailChimp] Checking list name : ABC members
    [2023/04/16 13:37:47] – SUCCESS: [MailChimp] Found a match for the list name on MailChimp. List ID :1982180234
    [2023/04/16 13:37:47] – SUCCESS: [MailChimp] List ID to subscribe to:1982180234
    [2023/04/16 13:37:47] – SUCCESS: [MailChimp] Modifying interest groups…

    The resulting error that appears is this:

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    To note:

    – This only occurs when updating the membership level of an existing user
    – The change does get made, regardless of the error
    – When I disable the MailChimp plugin, this error does not occur

    Any ideas? Is it because the user already exists in MailChimp? If that’s the case, could the plugin be updated so that it doesn’t send a critical error message every time a membership level is updated?

    Thanks!

    April 18, 2023 at 1:42 am #25974
    admin
    Keymaster

    The critical error happens due to the server rejecting or stopping a particular action that the addon was trying to execute.

    If you’re trying to figure out why the server is throwing errors, rejecting requests, or halting actions, it’s useful to consult the server’s error logs. The error logs contain detailed information that can provide clues about the problem. Without this information, we would be left to speculate without any clear understanding of the issue.

    So ask the hosting provider for the error log file. Then look at the particular error that is triggered when this mailchimp alteration process takes place. If you post the error from the server, we should have some more clues.

    April 18, 2023 at 7:11 pm #25975
    Jacqueline
    Participant

    Sure thing – here is the error log (replaced site name with xxxxxx). Again, as a reminder, this only happens when changing membership level. Adding new members works fine.

    [Tue Apr 18 12:07:15.236132 2023] [security2:error] [pid 30173:tid 47838856623872] [client 75.157.122.104:50119] [client 75.157.122.104] ModSecurity: Warning. Match of “pmFromFile path_excludes” against “REQUEST_FILENAME” required. [file “/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-apache/006_i360_4_custom.conf”] [line “249”] [id “77140992”] [msg “IM360 WAF: Suspicious access attempt (WP folders)!||SC:/home/xxxxxx/public_html/wp-admin/admin.php||REQUEST_URI:/wp-admin/admin.php?page=simple_wp_membership&member_action=edit&member_id=179||T:APACHE||”] [severity “NOTICE”] [tag “service_i360custom”] [tag “noshow”] [tag “im360_req_post”] [hostname “xxxxxx.ca”] [uri “/wp-admin/admin.php”] [unique_id “ZD7qYxYOs-ju5jZTqlDsngAAAA0”], referer: https://xxxxxx.ca/wp-admin/admin.php?page=simple_wp_membership&member_action=edit&member_id=179

    April 19, 2023 at 12:34 am #25976
    The Assurer
    Moderator

    The best way to describe the issue, is that your hosting provider has the ModSecurity settings turned up too high. The error occurs, because ModSecurity is preventing the plugin from directly calling a wp-admin PHP file. This is something only the host provider can/should fix. There are things you could do, but the preferred way is to have your hosting provider fix it.

    April 27, 2023 at 7:10 pm #26016
    Jacqueline
    Participant

    Thank you for this feedback. I’ve reached out to the web host, and this is their response:

    This is not a mod_security and this rule doesn’t block. It’s just a warning.
    SecRule REQUEST_METHOD “@rx ^POST$” “id:77140992,chain,phase:2,pass,log,severity:5,t:none,msg:’IM360 WAF: Suspicious access attempt (WP folders)!||SC:%{SCRIPT_FILENqAME}
    pass – means that request will be tracked, but not blocked;

    I would have them take a look at error:

    Error message: Uncaught Error: Unsupported operand types in /home/public_html/wp-content/plugins/simple-membership-mailchimp-integration/swpm-mailchimp-action.php:325

    Does this seem like something further that you can investigate?

    Thanks so much!

    Jacqueline

    April 28, 2023 at 8:51 pm #26017
    Jacqueline
    Participant

    Just a follow-up to this – my web host dug further into the issue and replied with the following:

    “We checked deeper, and it seems to be a bug in “Simple Membership MailChimp Integration” by “smp7, wp.insider” plugin.

    Can you have the plugin support check the uncaught error below?
    Uncaught Error: Unsupported operand types in /home/public_html/wp-content/plugins/simple-membership-mailchimp-integration/swpm-mailchimp-action.php:325″

    Thanks so much!

    Jacqueline

    April 28, 2023 at 10:36 pm #26018
    The Assurer
    Moderator

    I have notified the developer(s).

    April 28, 2023 at 10:49 pm #26020
    Jacqueline
    Participant

    Great, thank you!

    April 30, 2023 at 8:32 am #26026
    admin
    Keymaster

    The issue is the “Interest group” configuration that you have entered. The formatting of the interest group values look to be throwing things off.

    What value have you entered in the “MailChimp List Name” field?

    As a test, remove the interest group data configuration from the plugin’s “MailChimp List Name” field. Only keep the list name and do a test run to see if it still generates the error.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy