Forums

Deprecated in PHP8.1

dsimonse 29 Jan, 2024
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
Admiral 01 Feb, 2024
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
Max_admin 01 Feb, 2024
Sure, I have added it to the bugs list to be fixed before a new v7 update
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jmanc 07 Jun, 2024

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

Max_admin 12 Jun, 2024

@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

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jmanc 12 Jun, 2024

Thanks Max! I will investigate, I thought as much, it seems like more of a host issue. Take care

You need to login to be able to post a reply.