Error from plugin on logs

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #136782

    Appears on the erro_log and php-fpm_error.logs:

    Error:

    Undefined array key “alg_wc_pq_min_all

    Complete log:

    [14-Mar-2024 08:32:32] WARNING: [pool xxx.pt] child 1539362 said into stderr: “PHP message: PHP Warning: Undefined array key “alg_wc_pq_min_all_product” in /var/www/vhosts/xxx.pt/httpdocs/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/pro/class-alg-wc-pq-pro.php on line 346″

    line 346:

    – if ($cat_quantity > 0)

    Code file:

    // $meta_key = ‘alg_wc_pq_’ . $min_or_max;
    $meta_key = ‘alg_wc_pq_’ . $min_or_max . ‘_all_product’;
    if (!empty($term_meta) && is_array($term_meta)) {
    $cat_quantity = $term_meta[$meta_key];
    if ($cat_quantity > 0)
    {
    return $cat_quantity;
    }
    }
    }
    }
    return;
    }

    #137024
    Moshtafizur
    Moderator
    Plugin Support

    Hi there,

    Thanks for reaching out. I am sorry to know that you are experiencing issues.

    I was unable to reproduce the issue. Could you please ensure that you using the latest version of WooCommerce and our plugin? Please let us know.

    #137049

    Hello,

    We are using the woocommerce 8.6 and the plugin version is 4.5.23.

    Let us know if need further information.

    Thanks,

    #137182
    Moshtafizur
    Moderator
    Plugin Support

    Hi there,

    Thanks for letting us know.

    I have escalated this with our development team. They will back to you as soon as possible.

    Kind regards.

    #137431

    Hello,

    Can we have an update? We are continuing to get this errors and now after update the woocommerce to last version we have error updating the product stock.

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.