When opening a form after upgrade to PHP8.1 I got ths message:
Deprecated: substr_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /data/f/9/f93134be-1f5f-4335-8028-ffe48300a2c6/rojteatern.nu/public_html/administrator/components/com_chronoforms7/chronoforms/helpers/parser2.php on line 269
I edited the line 269:
$output = substr_replace($output, $result, strpos($output, $tag), strlen($tag));
to:
$output = substr_replace($output, $result ??'', strpos($output, $tag), strlen($tag));
And the message dissapeard.
//Dennis
Deprecated: substr_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /data/f/9/f93134be-1f5f-4335-8028-ffe48300a2c6/rojteatern.nu/public_html/administrator/components/com_chronoforms7/chronoforms/helpers/parser2.php on line 269
I edited the line 269:
$output = substr_replace($output, $result, strpos($output, $tag), strlen($tag));
to:
$output = substr_replace($output, $result ??'', strpos($output, $tag), strlen($tag));
And the message dissapeard.
//Dennis