• After doing the updates on my site, I started getting an error from the code trying to get the first element of an empty array. I fixed it manually. Here’s the fix, if anyone else wants it:

    In includes/variations.php, line 170, replace :
    $_prod = wc_get_product( $attributes[0]['id'] );
    by :
    $_prod = ! empty( $attributes[0]['id'] ) ? wc_get_product( $attributes[0]['id'] ) : null;

  • The topic ‘Notice: Undefined offset: 0 in includes/variations.php’ is closed to new replies.