Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter jonpreston

    (@jonpreston)

    Hi @mytrinh,

    Thank you for the quick reply.

    I can confirm that I am already running CURCY version 2.4.2 on PHP 8.3.32, and these deprecation notices are still actively generating in the logs.

    The reason this might not show up on your test server is likely because E_DEPRECATED warnings or WP_DEBUG_LOG are disabled in your test environment. PHP 8.1+ introduced a strict deprecation notice whenever a non-integer float (e.g., 23.52 or 17.50) is implicitly converted to an integer (such as inside bitwise operations, array offsets, or integer-type parameters).

    Here are the exact details from v2.4.2:

    • File: wp-content/plugins/woocommerce-multi-currency/frontend/price.php
    • Affected Lines: 1101, 1103, 1220, and 1221
    • Trigger: Price conversion math resulting in floating-point decimals being passed directly into code expecting an integer.

    Could the development team please review those specific lines in frontend/price.php and wrap the float calculations in explicit casting or round() / intval()? This will resolve the warnings, prevent debug.log file bloat, and ensure full PHP 8.3 compliance.

    Best regards,

    Jon

Viewing 1 replies (of 1 total)