Hi there,
I get a fatal error on a Joomla 3.6.2 site when switched to PHP7.
Here's the error:
KExceptionError | Fatal Error
Function name must be a string
.../templates/purity_iii/html/mod_cmc/default.php:76
71 {
72 foreach ($fields as $f)
73 {
74 $field = explode(';', $f);
75 echo '<div class="control-group">';
76 echo $form->$field[1]($field);
77 echo '</div>';
78 }
79 }
80
81 if (is_array($interests))
I've been told that Line 76: "echo $form->$field[1]($field);" is not valid in PHP7 and is generating an error as our build in debugger shows. This line needs to be fixed and be made compatible with PHP7.
I'm not a PHP guy so I am only going on information forwarded to me by another developer.
Would changing this one line and making it valid in PHP7 give me the ability to run the site in PHP7?
The site runs fine in PHP5.5.
Is this a simple change?
Best regards,
Joe Sonne