The log, route, and rawdata field for all pireps sent to vaCentral has also been missing in all versions of phpVMS.
If you are using version <= 936 you will need to add the following line to CentralData.class.php
find (appx line 387)
$pirep_xml->addChild('revenue', $pirep->revenue);
$pirep_xml->addChild('source', $pirep->source);
$pirep_xml->addChild('landingrate', $pirep->landingrate);
and add
$pirep_xml->addChild('log', $pirep->log);
$pirep_xml->addChild('route', $pirep->route);
$pirep_xml->addChild('rawdata', $pirep->rawdata);
Final config should look like
$pirep_xml->addChild('revenue', $pirep->revenue);
$pirep_xml->addChild('source', $pirep->source);
$pirep_xml->addChild('landingrate', $pirep->landingrate);
$pirep_xml->addChild('log', $pirep->log);
$pirep_xml->addChild('route', $pirep->route);
$pirep_xml->addChild('rawdata', $pirep->rawdata);
}
If you are using one of my 5.x versions you will have to make a slightly different change to the CentralData.class.php file which you can find here -> https://github.com/D…36627cd84661994 and here -> https://github.com/D…1d30bf0c602d5a1
EDIT: You must also make a change to PIREPData.class.php
Find this following around line 320 for versions <= 936
public static function getReportDetails($pirepid)
{
$sql = 'SELECT p.*, s.*, s.id AS scheduleid, p.route, p.route_details,
u.pilotid, u.firstname, u.lastname, u.email, u.rank,
and change to
public static function getReportDetails($pirepid)
{
$sql = 'SELECT p.*, s.*, s.id AS scheduleid, p.route, p.route_details, p.rawdata,
u.pilotid, u.firstname, u.lastname, u.email, u.rank,
If you are running a 5.5.x version the change can be found here -> https://github.com/DavidJClark/phpvms_5.5.x/commit/b746267be2988f7bfdc3017dabd215c2bc20e83d