Gravity Forms and PHP 8.0 Compatibility

Compatibility

PHP 8.0 is a major new release of the PHP language with many changes.

WordPress 5.6 and later support PHP 8.0. Gravity Forms is compatible with PHP 8.0, and all known issues listed below are fixed.

Related: Gravity Forms and PHP 8.1 Compatibility

Reporting Issues

If you think you have discovered a PHP 8.0-related issue with a Gravity Forms product in your own testing, please let us know by contacting Support. Thank you for contributing!

Known Issues

The following issues were reported and fixed:

  • version_compare() fatal error in gravityforms.php – Fixed in 2.4.23.
  • Unknown named parameter fatal error in class-gf-addon.php when enqueueing scripts – Fixed in 2.4.23.
  • Multiple “required parameters following optional parameter” deprecation notices in Gravity Forms core and add-ons – Fixed in 2.5 and various add-on updates.
  • usort() returning bool from comparison function is deprecated notice in form_list.php – Fixed in 2.4.23.
  • Uncaught ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in class-gf-field-date.php – Fixed in 2.5.16.3.