This is my error message:
Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /home/checkmy/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 179
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/checkmy/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 189
public function is_available( $package ) {
if ( $this->enabled == "no" )
return false;
// Country availability
switch ( $this->availability ) {
case 'specific' :
case 'including' :
$ship_to_countries = array_intersect( $this->countries, array_keys( WC()->countries->get_shipping_countries() ) );
break;
case 'excluding' :
$ship_to_countries = array_diff( $this->countries, array_keys( WC()->countries->get_shipping_countries() ) );
break;
default :
$ship_to_countries = array_keys( WC()->countries->get_shipping_countries() );
break;
}
if ( ! in_array( $package['destination']['country'], $ship_to_countries ) )
return false;
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true, $package );
}
These are lines 171 -193 of the specified file.