PHP 7.4 – WordPress 5.4.1 – media.php error
-
After I upgraded WordPress to the latest version 5.4.1 and PHP 7.4 I am having this error in error_log file
PHP Warning: A non-numeric value encountered in /home/public_html/abcdefg/wp-includes/media.php on line 458 PHP Warning: A non-numeric value encountered in /home/public_html/abcdefg/wp-includes/media.php on line 468
I find the following lines
On line 458
if ( (int) round( $current_width * $larger_ratio ) > $max_width || (int) round( $current_height * $larger_ratio ) > $max_height ) {
and On line 468
$h = max( 1, (int) round( $current_height * $ratio ) );
The error was not recorded earlier (even with 7.4 PHP) and seems to be from the date I updated wordpress to 5.4.1
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘PHP 7.4 – WordPress 5.4.1 – media.php error’ is closed to new replies.