• Resolved vsantoro49

    (@vsantoro49)


    Constant Contact form is not sending contacts to the CC list. Last contact update was on June 8, 2023, when the plugin update was released. The website is using Elementor (free version). I get a message indicating a critical WordPress error. Here are the details:

    It may be helpful to include something like this in your post:
    
    - Resyncing did not resolve
    - Disconnected
    - attempted reconnect> Critical Error on your website. Please see your email for instructions Here is what was in the message you sent to me: When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.3.1
    Active theme: Astra Child (version 1.0.0)
    Current plugin: Constant Contact Forms for WordPress (version 2.3.0)
    PHP version 8.1.23


    Error Details
    =============
    An error of type E_ERROR was caused in line 1496 of the file /home/medx/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php. Error message: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /home/medx/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php:1496
    Stack trace:
    #0 /home/medx/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php(1496): array_keys(NULL)
    #1 /home/medx/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php(851): ConstantContact_API->has_note(NULL)
    #2 /home/medx/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php(1607): ConstantContact_API->create_update_contact(Array, 'c.maguire@medx....', NULL, '1219')
    #3 /home/medx/public_html/wp-includes/class-wp-hook.php(310): ConstantContact_API->clear_missed_api_requests('')
    #4 /home/medx/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
    #5 /home/medx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /home/medx/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php(1378): do_action('ctct_access_tok...')
    #7 /home/medx/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php(102): ConstantContact_API->acquire_access_token()
    #8 /home/medx/public_html/wp-includes/class-wp-hook.php(310): ConstantContact_API->cct_init('')
    #9 /home/medx/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
    #10 /home/medx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #11 /home/medx/public_html/wp-settings.php(632): do_action('init')
    #12 /home/medx/public_html/wp-config.php(97): require_once('/home/medx/publ...')
    #13 /home/medx/public_html/wp-load.php(50): require_once('/home/medx/publ...')
    #14 /home/medx/public_html/wp-admin/admin.php(34): require_once('/home/medx/publ...')
    #15 /home/medx/public_html/wp-admin/edit.php(10): require_once('/home/medx/publ...')
    #16 {main}
    thrown

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    Hi @vsantoro49

    Do you have a public-facing page where we can see the form in question, and potentially attempt submitting to it?

    Based on the line numbers for this, it’s coming from a check for if there’s a Constant Contact note in a given submission, but are somehow getting empty data passed in.

    Thread Starter vsantoro49

    (@vsantoro49)

    The form is on the home page at mid-page: https://medx.com/

    Thank you for the help.

    Plugin Author Constant Contact

    (@constantcontact)

    Just submitted to it twice, one without the “how did you hear about us” and one with that field.

    for timestamp sake and comparison, it’s right around 7:15pm CST.

    Curious if one or both caused fatal errors in your error logs, or maybe neither.

    Thread Starter vsantoro49

    (@vsantoro49)

    Thanks! I received the email lead confirmation email and checked the list in CC. The email [email protected] was added to the list.

    Did you receive a Welcome email message after form submission?

    Thread Starter vsantoro49

    (@vsantoro49)

    I tested with an email address I had deleted from the CC list. I used it again and it was added to the list. However, I didn’t receive the welcome email.

    I deleted your email address from the list incase you want to use it again to test.

    Thread Starter vsantoro49

    (@vsantoro49)

    Tried a new email address and everything is working. Thank you!

    Plugin Author Constant Contact

    (@constantcontact)

    Yes, a welcome was received for the first submission, but not the second. Likely because the same email was used and it was still on the list.

    Sounds like it was potentially a false positive for the error, or we haven’t figured out how to properly recreate it yet.

    Perhaps we can put this on temporary hold and keep an eye on things for a bit. If the issue returns, we can re-examine at that time.

    Sound like a plan?

    Thread Starter vsantoro49

    (@vsantoro49)

    Yes, good idea. I’ll check to ensure it’s working as we move forward. Appreciate your help. Thank you!

    Thread Starter vsantoro49

    (@vsantoro49)

    Just to let you know, the plugin stopped working again. The Form leads are not being added to the Constant Contact list. Frustrating.

    Plugin Author Constant Contact

    (@constantcontact)

    Anything new being reported in the debug logs for the plugin? Or is it still that same fatal error on the PHP side?

    Thread Starter vsantoro49

    (@vsantoro49)

    Where are the logs located for the plugin. I’ll have to re add the code to see if the fatal error happens again. I’ll let you know.

    Thread Starter vsantoro49

    (@vsantoro49)

    Received the critical error again:

    https://app.screencast.com/OlcxRhZhlpPrI

    Plugin Author Constant Contact

    (@constantcontact)

    If you received emails/messages similar to/same as the one you posted in the original thread here, then I know the likely error overall.

    In terms of logs specific to the plugin, this screenshot wouldn’t get stored there, so not as much an issue to locate. However, the admin menu for it can be enabled via CTCT Settings > Support tab.

    That said, I’m assuming it’s the original error above, or something similar to that one. I’ll open an enhancement ticket internally to help handle it. Should be good for our next release, which I hope will be soon.

    Thread Starter vsantoro49

    (@vsantoro49)

    The error is exactly the same. Thanks.

    Plugin Author Constant Contact

    (@constantcontact)

    Are you willing and know-how-able to make the quick edit we’d be making to prevent the error from showing up? Hopefully that’d patch things up for you long enough to keep getting successful signups, while we get the next release read.

Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘Critical Error with Forms Plugin’ is closed to new replies.