I figured out what the issue was. Basically on line 415, what you see here: if( $wck_cfc_args[0][‘meta-name’] != $values[‘meta-name’] ){ $wpdb->update( $wpdb->postmeta, array( ‘meta_key’ => $values[‘meta-name’] ), array( ‘meta_key’ => $wck_cfc_args[0][‘meta-name’] ));
they are checking to make sure what you set as the meta name, doesn’t already exist, and then they will perform the update. What happened is that the first part $wck_cfc_args
isn’t actually an array, it’s a string. So you can’t reference certain indexes of an array, if it isn’t really an array. Anyways here’s the block I added before that call to fix the problem:
if(empty($wck_cfc_args) || !is_array($wck_cfc_args)){
$wck_cfc_args = array();
$wck_cfc_args[0]['meta-name'] = 'undefined';
}
What I’m doing is checking if that element is either empty or isn’t an array, i.e. you don’t have duplicate names. If that’s the case, I go ahead and initialize it with some garbage value. Hope this helps.