• From the server logs, I keep receiving the following warnings:

    2025/10/30 10:57:16 [error] 442#442: *1242415 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "product_badge_id" in /www/sitename/public/wp-content/plugins/feedaty-rating-for-woocommerce/extensions/archive_stars.php on line 470", client: 104.28.60.90, server: www.sitename.com, request: "GET / HTTP/2.0", host: "www.sitename.com:55786"

    I am using PHP 8.2.

    In the file extensions/archive_stars.php, I suggest the following modification on line 470:

    From:

    $badge_id = $parent['product_badge_id'];

    To:

    $badge_id = (is_array($parent) && isset($parent['product_badge_id'])) ? $parent['product_badge_id'] : null;

    This change ensures that the code does not trigger warnings when $parent is not an array or the key product_badge_id is missing.

You must be logged in to reply to this topic.