I just started getting this fatal error in form.php - using php 7.1.3. (See attachment)
Line 4900 is...
the variable $group is initialized on line 4741 as...
which returns an object (that does not include [class]).
Initially, I assumed an easy fix for this particular "[] operator not supported for strings" error would be to just change line 4700 to...
But I'm not sure if 'class' might sometimes already be included in the getGroupProperties - and if so would it be included as a string or an array? And might that string be a space-delimited list of class names?
In that case, replacing line 4700 with something like this should cover it all...
Because of my uncertainties, I won't try to fix this at Github myself - I'm just the messenger.
But that suggested code is now working for me.
Line 4900 is...
PHP:
$group->class[] = 'fabrikGroup';
PHP:
$group = $groupModel->getGroupProperties($this);
Initially, I assumed an easy fix for this particular "[] operator not supported for strings" error would be to just change line 4700 to...
PHP:
$group->class = array('fabrikGroup');
In that case, replacing line 4700 with something like this should cover it all...
PHP:
if(!is_array($group->class)) {
$group->class = (isset($group->class)) ? explode(' ',$group->class) : array();
}
$group->class[] = 'fabrikGroup';
Because of my uncertainties, I won't try to fix this at Github myself - I'm just the messenger.
But that suggested code is now working for me.
Attachments
Last edited: