• Resolved Victor Font

    (@vfontj)


    Installed the plugin, site crashes immediately upon attempting to connect to account with following errors:

    Warning: array_key_exists() expects parameter 2 to be array, string given in /home/bachmana/public_html/wp-content/plugins/constant-contact-forms/includes/class-settings.php on line 850

    Warning: Cannot modify header information – headers already sent by (output started at /home/bachmana/public_html/wp-content/plugins/constant-contact-forms/includes/class-settings.php:850) in /home/bachmana/public_html/wp-includes/pluggable.php on line 1219

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

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

    (@constantcontact)

    Hi @vfontj

    Sorry to hear that this happened to you. Hopefully you were able to get back in to your admin and everything right away afterwards.

    We have better checks around this, to help prevent these errors, within our next major release. We’re hoping to have it ready soon, but aren’t there quite yet.

    Let us know if you need anything else.

    Thread Starter Victor Font

    (@vfontj)

    I renamed the plugin folder to get the site back up.

    Any idea when the next release will be out? I have 2 clients anxious to use the plugin. I’d rather not look for an alternative.

    Plugin Author Constant Contact

    (@constantcontact)

    We can’t make any promises, but I’m personally hopeful it’s within the next few weeks.

    If you would like, I can provide you a copy of the plugin that has just this one fix in place, that you can use in the meantime.

    Thread Starter Victor Font

    (@vfontj)

    Yes please. That would be awesome.

    Plugin Author Constant Contact

    (@constantcontact)

    Here you go. Should be able to unzip it and then just upload it right into the plugins folder. Extracted folder should have a matching name to what you have now.

    https://www.dropbox.com/s/48z9ufzgobg11pw/constant-contact-forms-array_key_hotfix.zip?dl=0

    For anyone curious, this is the original line:

    } elseif ( array_key_exists( $key, $opts ) && false !== $opts[ $key ] ) {
    

    and this is the modified line to address the error:

    } elseif ( is_array( $opts ) && array_key_exists( $key, $opts ) && false !== $opts[ $key ] ) {
    
    Thread Starter Victor Font

    (@vfontj)

    Thank you. Error fixed. I’m marking this as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘array_key_exists() expects parameter 2 to be array’ is closed to new replies.