1
Updated site via xoops-2.2.3a-to-2.2.4.zip patch, downloaded from official XOOPS page. Got:
atal error: Cannot use object of type XoopsProfileField as array in x:\xxx\www.example.com\kernel\profilefield.php on line 355
$fields_data = array();
foreach($_fields_data as $key => $field_data){
for($i=0;$i
$fields_data[$key][$keys[$i]] = $field_data[$i]; // 355 line
}
}
tried to fix myself, looks like working, but not sure that there will not spawn some profile fields problem at future:
$fields_data = array();
foreach($_fields_data as $key => $field_data){
for($i=0;$i if ( is_object($field_data) )
$fields_data[$key][$keys[$i]]=$field_data->vars[$keys[$i]];
else
$fields_data[$key][$keys[$i]] = $field_data[$i]; // old 355 line
}
}
question... What I did wrong when updated (simply copied with overwriting files from html folder from path to my site folder, I can't access any page - nither login nor admin panel) site or is my fix correct/where to download official fix.
Thanks in advance!
p.s.
PHP v: 5.1.2
MySQL Server v: 5.0.16-nt
MySQL Client API v: 5.0.16