WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Salesforce Add-on
[resolved] Getting "Warning: array_key_exists()" at the top of the page (3 posts)

  1. vitalunfolding
    Member
    Posted 2 years ago #

    I'm getting the following warning:

    Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /wp-content/plugins/gravity-forms-salesforce/salesforce.php on line 438

    if((!empty($data[$label]) && !empty($value) && $value !== '0') || empty($data[$label]) && array_key_exists($label, $defaults)) {
    				   		$data[$label] = $value ;

    I've seen some similar issues with other WordPress plugins and the popular solution appears to be to wrap the $label in single quotes like this: '$label'. Any suggestions?

  2. dasmart
    Member
    Posted 2 years ago #

    I'm seeing this as well.

  3. Zack Katz
    Member
    Plugin Author

    Posted 2 years ago #

    This should be fixed in version 1.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic