Title: Critical Error with Forms Plugin
Last modified: October 17, 2023

---

# Critical Error with Forms Plugin

 *  Resolved [vsantoro49](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/)
 * 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:
 *     ```wp-block-code
       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.1Active theme: Astra Child (version 1.0.0)Current plugin: Constant Contact Forms for WordPress (version 2.3.0)PHP version 8.1.23Error 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:1496Stack 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-with-forms-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

1 [2](https://wordpress.org/support/topic/critical-error-with-forms-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/critical-error-with-forms-plugin/page/2/?output_format=md)

 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17131176)
 * Hi [@vsantoro49](https://wordpress.org/support/users/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](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17131347)
 * The form is on the home page at mid-page: [https://medx.com/](https://medx.com/)
 * Thank you for the help.
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17131543)
 * 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.
    -  This reply was modified 2 years, 7 months ago by [Constant Contact](https://wordpress.org/support/users/constantcontact/).
 *  Thread Starter [vsantoro49](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17131556)
 * Thanks! I received the email lead confirmation email and checked the list in 
   CC. The email [support@pluginize.com](https://wordpress.org/support/topic/critical-error-with-forms-plugin/support@pluginize.com?output_format=md)
   was added to the list.
 * Did you receive a Welcome email message after form submission?
 *  Thread Starter [vsantoro49](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17131561)
 * 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](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17131566)
 * Tried a new email address and everything is working. Thank you!
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17133099)
 * 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](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17133135)
 * Yes, good idea. I’ll check to ensure it’s working as we move forward. Appreciate
   your help. Thank you!
 *  Thread Starter [vsantoro49](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17136316)
 * 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](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17136501)
 * 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](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17136684)
 * 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](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17136785)
 * Received the critical error again:
 * [https://app.screencast.com/OlcxRhZhlpPrI](https://app.screencast.com/OlcxRhZhlpPrI)
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17136837)
 * 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](https://wordpress.org/support/users/vsantoro49/)
 * (@vsantoro49)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17137041)
 * The error is exactly the same. Thanks.
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/#post-17137230)
 * 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)

1 [2](https://wordpress.org/support/topic/critical-error-with-forms-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/critical-error-with-forms-plugin/page/2/?output_format=md)

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

 * ![](https://ps.w.org/constant-contact-forms/assets/icon-256x256.png?rev=2951825)
 * [Constant Contact Forms](https://wordpress.org/plugins/constant-contact-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/constant-contact-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/constant-contact-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/constant-contact-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/constant-contact-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/constant-contact-forms/reviews/)

 * 21 replies
 * 2 participants
 * Last reply from: [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/critical-error-with-forms-plugin/page/2/#post-17161678)
 * Status: resolved