I’ve discovered that it’s difficult to get away from GeneratePress. I need to remove GP and GP Premium from a site and switch to Elementor (pro, theme kit, etc). When I switch to Hello Elementor from GP I get this in the header (and oftentimes the footer of every page):
Warning: A non-numeric value encountered in ../wp-includes/media.php on line 467
It involves the following lines from media.php (the $h – max.. line to be specific)
// Very small dimensions may result in 0, 1 should be the minimum.
$w = max( 1, (int) round( $current_width * $ratio ) );
$h = max( 1, (int) round( $current_height * $ratio ) );
I’ve never switched away from GP before, so I’m out of my element, and I’ve tried a fresh install, but I don’t know where the issue is in the database to remove it. Now this error isn’t exclusive to Elementor as I’ve reproduced it using the standard classic WordPress editor without Elementor on the site and using the default theme.
I realize that it’s only attached to images – and seems to affect primarily any image I use as a logo whether the sitelogo or an image in place.
I’m at a loss! I’d appreciate any guidance.