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
Hey Max,
Since quite a few of us are still using CF7 would you be able to look into this and perhaps push an update to CF7 if necessary so we can stay current on PHP?
Thanks!
-Admiral
Since quite a few of us are still using CF7 would you be able to look into this and perhaps push an update to CF7 if necessary so we can stay current on PHP?
Thanks!
-Admiral
Sure, I have added it to the bugs list to be fixed before a new v7 update
Hi Max,
Was this fix perhaps pushed to the v7 update yet? My host has me on php 8.1 and I tried to manually update the package but I don't think the fix is there yet. For some reason my admin mails aren't being sent to a specified email address, my host in investigating too but since this is the only error I can see I thought I would check if it fixed it. Any chance perhaps? Kind regards
@jmanc, this fix is not related to emails issues, if your email is not being sent to a specific email address then it's something related to your email server
You need to login to be able to post a reply.