Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated
2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 3, 2023 (RSS)
hi Guys,
im seeing this error in your formgenerator plugin: Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated (line 90)
is there possibly a fix or update for this, im assuming its PHP8 thats causing it.
By Dave - April 3, 2023
Hi David,
Can you try adding a @ before "preg_match" on line 90 of formGenerator.php and see if that resolves it. It should look like this:
if (!is_array($value) && @preg_match("/\t/", $value)) {
Let me know if that works for you.
Thanks!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com