Warning: array_key_exists() expects parameter 2 to be array
-
Hello. Sometimes, when I enter my website, I getting this warning:
Warning: array_key_exists() expects parameter 2 to be array, string given in /home/caauty/domains/camourbeauty.com/public_html/wp-content/plugins/hide-shipping-method-for-woocommerce/public/class-woo-hide-shipping-methods-public.php on line 260
My code starts from 260 line:
if ( array_key_exists( 'general_rule_match', $cost_rule_match ) ) { $general_rule_match = $cost_rule_match['general_rule_match']; } else { $general_rule_match = 'any'; } } else { $general_rule_match = 'any'; }
How to fix it? Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Warning: array_key_exists() expects parameter 2 to be array’ is closed to new replies.