Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator).... in PHP 8.0

I just upgraded my webpage to PHP 8.0 and Gravity Forms to the latest version. But i still get a fatal error, with the below message. Can anyone assist me on what to do?

Fatal error : Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid comparison operator in /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-content/plugins/wp-smush-pro/lib/class-wp-smush.php:1300 Stack trace: #0 /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-content/plugins/wp-smush-pro/lib/class-wp-smush.php(1300): version_compare(‘2.9.1’, ‘1.7.1’, ‘lte’) #1 /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-content/plugins/wp-smush-pro/lib/class-wp-smush.php(271): WP_Smush->migrate() #2 /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-includes/class-wp-hook.php(308): WP_Smush->admin_init(‘’) #3 /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #4 /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-admin/admin.php(175): do_action(‘admin_init’) #6 /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-admin/post-new.php(10): require_once(‘/www/webvol12/u…’) #7 {main} thrown in /www/webvol12/u2/7ey9mbf8c0um0xy/karlstadpartiet.se/public_html/wp-content/plugins/wp-smush-pro/lib/class-wp-smush.php on line 1300

You’ll need to contact WPMU DEV for support with that fatal error, it’s coming from their WP Smush Pro plugin: WP Smush Pro - #1 WordPress Image Optimization Plugin

1 Like