• Hi, trying to hide a product on woocommerce I got this error:

    Warning: get_class() expects parameter 1 to be object, string given in C:\…\availability-scheduler-for-woocommerce\azh_woo_availability_scheduler.php on line 151

    The line is:

    if (is_object($product) && get_class(‘WC_Product’))

    you could fix it simply checking if global $product is a product, or rather, change lines 151 and 194 to:

    if(is_product($product))

    I hope I have been helpful (even if didn’t check for related issues or side effects..)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author azexo

    (@azexo)

    Hi,
    thank you
    i fixed it
    please update

    after I installed the plugin I encountered this error. Please check.

    Warning: array_keys() expects parameter 1 to be array, null given in /home4/abnaca/diamond-sushi.com/wp-content/plugins/marketing-automation-by-azexo/azh_marketing_automation.php on line 641

    Warning: in_array() expects parameter 2 to be array, null given in /home4/abnaca/diamond-sushi.com/wp-content/plugins/marketing-automation-by-azexo/azh_marketing_automation.php on line 641

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue’ is closed to new replies.