Has anyone come across this error in unassigned devices?
Warning: syntax error, unexpected '=' in Unknown on line 1 in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 1993
Not sure where to begin in debugging this, but to begin with the line in the code throwing the error. Maybe it's something with the disk name? Not sure how to pull logs just yet. Any guidance would be appreciated.
/* Get the udev disk information. */
function get_udev_info($dev, $udev = null) {
global $paths;
$state = is_file($paths['state']) ? @parse_ini_file($paths['state'], true, INI_SCANNER_RAW) : array();
$device = safe_name($dev);
if ($udev) {
$state[$device]= $udev;
save_ini_file($paths['state'], $state);
$rc = $udev;
} else if (array_key_exists($device, $state)) {
$rc = $state[$device];
} else {
$dev_state = parse_ini_string(timed_exec(5,"/sbin/udevadm info --query=property --path $(/sbin/udevadm info -q path -n ".escapeshellarg($device)." 2>/dev/null) 2>/>
if (is_array($dev_state)) {
$state[$device] = $dev_state;
save_ini_file($paths['state'], $state);
$rc = $state[$device];
} else {
$rc = array();
}
}
return $rc;
}