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
72 foreach ($fields as $f)
74 $field = explode(';', $f);
75 echo '<div class="control-group">';
76 echo $form->$field($field);
77 echo '</div>';
81 if (is_array($interests))
I've been told that Line 76: "echo $form->$field($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?