Warning: Undefined array key 0 and Warning: Trying to access array offset on null

Hello,

We are using a filter for our classic gravity forms to ensure our older gravity forms appear after some code updates to the Pro theme.

add_filter(‘cs_classic_gravity_forms_select_a_form_placeholder’, ‘__return_false’);

We recently upgraded to PHP 8.3 and the filter is causing php null notices for sites that don’t use the classic gravity forms. Here are the notices:
Warning: Undefined array key 0 in /code/web/app/themes/pro/cornerstone/includes/elements/classic/_alternate/gravity-forms.php on line 57

Warning: Trying to access array offset on null in /code/web/app/themes/pro/cornerstone/includes/elements/classic/_alternate/gravity-forms.php on line 57

Can we get a fix for PHP 8.3 strict handling of null? Do we still need the filter to ensure the sites with older gravity forms still appear?

Hope this finds you well,
Catherine

Hi Catherine,

Thanks for reaching out.
You are currently using a Classic Element to integrate the form, which is now deprecated and no longer receives updates. Still, I’ll check with our development team regarding this and let you know once I have an update on this.

As an alternative, you can use the V2 elements , such as Text or Raw Content , and add the form shortcode within them.

If you face any difficulties while implementing the form using the V2 elements , please let us know, and we’ll be glad to assist further.

Thanks

Hi Catherine,

Update: I informed our development team and they are working on it. Will be included in one of the upcoming release.

Thanks