For some reason, it creates that error in some environments. For example on my local environment I don’t have the error, but in the online environment, the error is displayed.
For now, I applied this temporary fix, in the child theme functions.php:
add_action('init',function(){
if (class_exists('Gravity_Forms_Live_Validation') && is_admin()) {
$gf_live_validation = Gravity_Forms_Live_Validation::get_instance();
remove_filter('gform_pre_render',array($gf_live_validation,'lv_apply_validations_to_form'));
}
});
The method “lv_apply_validations_to_form” does some output of data in back-end and I assume this method needs to be used only in front-end forms.
To replicate the issue:
– Create a demo form ( add some fields, some required );
– Make sure Real-time validation is active in that form;
– Go and add a new POST, add the form shortcode into content and save;
– In some environments, you will get the error or white screen ( if debug is told to write into debug.log file );
I’m not sure it’s only the PHP version, it might be PHP configuration also(php.ini options? )
– In my online environment, I have PHP 7.1.14 and the error exists.
– In localhost I have 7.2.0 ( and the error does not appear ). On localhost I use LocalByFlyWheel.
Nice plugin @amritanshatwisetr, keep it up ??
-
This reply was modified 6 years, 11 months ago by Mihai Irodiu.