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;
}