That line belongs to the code part of "custom" pirep fields which are defined by the va admin (probably by you).
/**
* Update any custom PIREP fields
*
* @param string $pirep_id
* @param PirepFieldValue[] $field_values
*/
public function updateCustomFields(string $pirep_id, array $field_values): void
{
if (!$field_values || empty($field_values)) {
return;
}
foreach ($field_values as $fv) {
PirepFieldValue::updateOrCreate(
['pirep_id' => $pirep_id, 'name' => $fv->name], // This is line 577 your error refers
['value' => $fv->value, 'source' => $fv->source]
);
}
}
What that errors says is this "You want me to use the name of a custom field, but I can not find the that custom field itself"
I would suggest checking your custom fields defined for pireps first.