• Warning: array_key_exists() expects parameter 2 to be array, boolean given in (,…)/wp-content/plugins/woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php on line 19

    Please fix this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Marco Almeida | Webdados

    (@webdados)

    You need to change line 19 from:
    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || array_key_exists( 'woocommerce/woocommerce.php', get_site_option('active_sitewide_plugins') ) ) {
    to
    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || ( get_site_option('active_sitewide_plugins') && array_key_exists( 'woocommerce/woocommerce.php', get_site_option('active_sitewide_plugins') ) ) ) {

    Plugin Author Rishi Mehta

    (@rcreators)

    Hello,

    Thanks for the solution. Will do it and update over next week.

    Thanks and Regards,
    Rishi Mehta
    Rcreators

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    Nice!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: array_key_exists() (…) line 19’ is closed to new replies.