Buy Now
Sign in

PHP 7.2 Error

jwill , October 10 2019, 16:33
jwill 38
October 10 2019, 16:33 #389490
I have several long complex forms on a site that almost never has changes. Because the forms work, I have never wanted to spend the time to rebuild all of the forms. After updating to PHP 7.2, I am receiving the following warning:
"Deprecated: Function create_function() is deprecated in /home/metro103/public_html/components/com_chronoforms/libraries/chronoform.php on line 410"
Is there an easy fix for this that will keep me from having to rebuild all of the forms?
GreyHead 64
October 10 2019, 17:50 #389493
Hi Jim,
Please see this post.
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
jwill 38
October 10 2019, 18:53 #389494
So would the bold part of this line

function _camilize($class = ''){
return preg_replace_callback('/(?:^|_)(.?)/i',create_function('$matches', 'return strtoupper($matches[1]);'), $class);
Be changed to this
function('$matches'){return strtoupper ($matches[1];},
healyhatman 8
October 11 2019, 03:32 #389495
function('$matches'){return strtoupper ($matches[1]);},
but yes, something like that.
Web developer at - I DO NOT work for ChronoEngine!
Professional Work:
Custom CF / CC Plugins and Extensions:
jwill 38
October 12 2019, 02:37 #389507