Ok I have been doing a little investigating into this error and my smartcars logs come up with
Call to undefined method PilotData::UpdatePilotPay() in <b>/home/virtualei/crew.virtualei.net/core/common/PirepAcData.class.php</b> on line <b>170</b><br />
Any help please
I used @web541 zipped version of PirepAcData.class.php
I am missing a function I think in PirepAcData.class.php but I dont know how to find it
public static function approve_pirep_post($id)
{
$pirepid = $id;
if($pirepid == '') return;
$pirep_details = PIREPData::GetReportDetails($pirepid);
# See if it's already been accepted
if(intval($pirep_details->accepted) == PIREP_ACCEPTED) return;
# Update pilot stats
SchedulesData::IncrementFlownCount($pirep_details->code, $pirep_details->flightnum);
PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED); // 1 is accepted
PilotData::UpdateFlightData($pirep_details->pilotid, $pirep_details->flighttime, 1);
PilotData::UpdatePilotPay($pirep_details->pilotid, $pirep_details->flighttime);
RanksData::CalculateUpdatePilotRank($pirep_details->pilotid);
PilotData::GenerateSignature($pirep_details->pilotid);
StatsData::UpdateTotalHours();
# Call the event
CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details);
}
PirepAcData.class.zip