Forums

PHP 8

guycarlens 12 Oct, 2022
Hello, when i activate php 8 on my hosting instead of 7.4, my contactform doesn't work anymore.
This error appears: Call to undefined function create_function()

This is the link: www.start-to-swim.com/contact

How to solve?

Thanks in advance for the help.

Greets
Guy
GreyHead 12 Oct, 2022
Hi Guy,

There is a thread here which shows a fix for this error in CFv5. I can't see that it has been previously reported for CFv7 but the error message should tell you in which line of code it occurs.

In general I don't think that Max has yet updated CFv7 to be fully compatible with PHP v8.

Bob
guycarlens 12 Oct, 2022
Hello

Thanks, is it this? :

REPLACE
create_function('$k,$v', 'return $k.":".$v;')
with
function($k, $v) {return $k.":".$v;}

Kind regards,
Guy
Max_admin 13 Oct, 2022
This is not in CFv7, in which file did you make the change ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guycarlens 13 Oct, 2022
I didn't make any change yet. I need help in this one, because i can't do it myself :-(;
Can i give my login?

Greets,
Guy
guycarlens 13 Oct, 2022
I set it back to 7.4 at the moment. Please help me out. Many thanks.
guycarlens 13 Oct, 2022
This is the error:
Call to undefined function create_function()/customers/d/4/0/start-to-swim.com/httpd.www/components/com_chronoforms/libraries/chronoform.php:410
Call stack#FunctionLocation1()JROOT/components/com_chronoforms/libraries/chronoform.php:4102CFChronoForm->_camilize()JROOT/components/com_chronoforms/libraries/chronoform.php:2993CFChronoForm->runAction()JROOT/components/com_chronoforms/libraries/chronoform.php:2874CFChronoForm->_processAction()JROOT/components/com_chronoforms/libraries/chronoform.php:2625CFChronoForm->_processEvents()JROOT/components/com_chronoforms/libraries/chronoform.php:2376CFChronoForm->process()JROOT/components/com_chronoforms/chronoforms.php:1147process()JROOT/components/com_chronoforms/chronoforms.php:1038require_once()JROOT/libraries/src/Component/ComponentHelper.php:4029Joomla\CMS\Component\ComponentHelper::executeComponent()JROOT/libraries/src/Component/ComponentHelper.php:37710Joomla\CMS\Component\ComponentHelper::renderComponent()JROOT/libraries/src/Application/SiteApplication.php:19411Joomla\CMS\Application\SiteApplication->dispatch()JROOT/libraries/src/Application/SiteApplication.php:23312Joomla\CMS\Application\SiteApplication->doExecute()JROOT/libraries/src/Application/CMSApplication.php:22513Joomla\CMS\Application\CMSApplication->execute()JROOT/index.php:49
Colnem 14 Oct, 2022
Hi

What version of Chronofoms?
Only Chronoforms V7 works under PHP8.

JROOT/components/com_chronoforms/libraries path doesn't exists in CF7.
GreyHead 14 Oct, 2022
Hi Guy,

Please see Colnem's question in this thread.

Bob
guycarlens 15 Oct, 2022
7 is installed too but no forms in that
Colnem 16 Oct, 2022
Version 3 of Chronoforms (!!!) or version 3 of Joomla?
guycarlens 16 Oct, 2022
It's the latest version of Joomla 3 and this version of Chronoforms: 4.0.8
Colnem 17 Oct, 2022
1 Likes
OK

Hello, when i activate php 8 on my hosting instead of 7.4, my contactform doesn't work anymore.


So, this version is not compatible with PHP8. Only CF7 works with PHP8.

You have3 possibilities:
1 - Don't change your version of PHP
2 - Install CF7 and rewrite all your forms.
3 - Find another extension compatible with PHP8.

Bye
guycarlens 17 Oct, 2022
7.4 will disappear. I like chronoforms, i prefer cf7, but i really need help of transferring my contactform to cf7.
Colnem 18 Oct, 2022
PHP 7.4 will not disappear. It will not be updated... But it's better to use PHP8 and Joomla 4.
You need to login to be able to post a reply.