silverstripe / silverstripe-userforms

UserForms module provides a visual form builder for the Silverstripe CMS. No coding required to build forms such as contact pages.
BSD 3-Clause "New" or "Revised" License
135 stars 225 forks source link

[Deprecated] strlen(): Passing null to parameter #1 ($string) of type string is deprecated #1276

Closed hirenatfos closed 6 months ago

hirenatfos commented 6 months ago

Module version(s) affected

5.9

Description

[Deprecated] strlen(): Passing null to parameter #1 ($string) of type string is deprecated GET /make-complaint Line 783 in /var/www/vendor/silverstripe/userforms/code/Model/EditableFormField.php

How to reproduce

After php upgrade from 8.0 to 8.1 we suddenly start getting this errors.

[Deprecated] strlen(): Passing null to parameter #1 ($string) of type string is deprecated GET /make-complaint Line 783 in /var/www/vendor/silverstripe/userforms/code/Model/EditableFormField.php

Possible Solution

No response

Additional Context

No response

Validations

GuySartorelli commented 6 months ago

5.9 is quite old. Please update to the latest version of this module and try again. If it still persists, we can investigate further.

GuySartorelli commented 6 months ago

Closing as I am confident this isn't a problem in the latest version of this module in the 5.x line.

hirenatfos commented 6 months ago

For me SS version 4.13 i have updated silverstripe/userforms 5.15 resolved this problem.

Thank you :)