PHP Fatal error: preg_split(): Cannot use output buffering in output buffering display handlers in X/wp-content/plugins/gravityforms/includes/libraries/class-dom-parser.php on line 315

Hi, we’re using WordPress 7.1, PHP 8.1 and Gravity Forms 3.1.0.4. Unfortunately, we get a white screen when creating a new post or page.

Here’s the error from the log: PHP Fatal error: preg_split(): Cannot use output buffering in output buffering display handlers in X/wp-content/plugins/gravityforms/includes/libraries/class-dom-parser.php on line 315

We’ve implemented a workaround that fixes the error, as per gform_disable_dom_parser - Gravity Forms Documentation

Many thanks if anyone has any ideas on how to resolve the error without using the workaround.

1 Like