A non well formed numeric value encountered
-
Hi,
I encounter this error on one of my sites, using Elementor’s latest version 3.2.4 and WordPress’s latest version 7.2
Notice: A non well formed numeric value encountered in /wp-content/plugins/elementor/includes/libraries/bfi-thumb/bfi-thumb.php on line 748 Notice: A non well formed numeric value encountered in /wp-content/plugins/elementor/includes/libraries/bfi-thumb/bfi-thumb.php on line 750 Notice: A non well formed numeric value encountered in /wp-content/plugins/elementor/includes/libraries/bfi-thumb/bfi-thumb.php on line 751
The code on those lines is:
$size_ratio = max( $new_w / $orig_w, $new_h / $orig_h ); $crop_w = round( $new_w / $size_ratio ); $crop_h = round( $new_h / $size_ratio );
It seems that the values of
$new_w
and$new_h
have the letters ‘px’ in them (for example ‘700px’) and passing those values to themax
andround
functions is what is causing the error.Is there any way you can fix this?
- The topic ‘A non well formed numeric value encountered’ is closed to new replies.