WPIntell

Source evidence

Division by Zero

Currency Exchange for WooCommerce · support · 2024-03-07T07:54:00+00:00

complaintsentiment
highseverity
0.85relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

10 / 67 rows with source links

14.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

57 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
estalhun unresolved
Hi, This morning my site was broken due to a php fatal error in main.php of this plugin. The line 295 does not have any protection against division by zero: [07-Mar-2024 07:42:06 UTC] PHP Warning: Undefined array key “HUF” in /home/***/absonic-ict.eu/wp-content/plugins/currency-exchange-for-woocommerce/main.php on line 292 [07-Mar-2024 07:42:06 UTC] Current rate: null [07-Mar-2024 07:42:06 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/***/absonic-ict.eu/wp-content/plugins/currency-exchange-for-woocommerce/main.php:295 It is the modified code: $rates[$rate_name] = $rate / ( isset($current_rate) && ! is_null($current_rate) && $current_rate != 0 ? $current_rate : 1 ); It is just a temporary solution but at least my site is running. Best regards, Estal Hello, We will add fix in next plugin release. Regards, Oleg

Comments

1 shown
RazyRx 2024-03-11T15:13:00+00:00

Hello, We will add fix in next plugin release. Regards, Oleg