• Hi guys,
    I discovered an error in the plugin on PHP8 version.
    When you try to sign in for an alert for out-of-stock variation, ajax throws fatal error – “unsupported operand types int+string”.
    I fixed it by changing:

    $no_of_subscribers = get_post_meta( $child_id, 'no_of_subscribers', true );
    to:
    $no_of_subscribers = intval(get_post_meta( $child_id, 'no_of_subscribers', true ));

    Devs, can you please include this change into your next update?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error class-woo-product-stock-alert-ajax.php line 222’ is closed to new replies.