Members Vangelis Posted December 9, 2016 Author Members Report Posted December 9, 2016 (edited) For example if you want this pirep to b declined yo can add a criteria like -> maximum speed of this aircraft is very dangerous or -> forgot to call a mayday it is copy paste the text from your log and the module will search for this words and if exist then the pirep is declined As each acars tracker has diferent text then you must create new criteria Edited December 9, 2016 by Vangelis Quote
Melli Posted December 10, 2016 Report Posted December 10, 2016 (edited) omg...i think we are talking about different things.... :-) not one pirep will be accepted automatically. no xacars and also no clean FS-Passenger PIREP. Also perfect really good flights are not working. here a log from xacars: (i added a *.txt for uploading) but i cant read anything inside the file.... F4B169.xap.txt Edited December 10, 2016 by Melli Quote
Melli Posted December 21, 2016 Report Posted December 21, 2016 SOLVED at this moment. idont know why, but with the file from user vangelis its working now: PirepAcData.class Quote
Moderators ProSkyDesign Posted January 10, 2017 Moderators Report Posted January 10, 2017 Help!! Strict Standards: Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135 Settings Are Saved Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 145 Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 147 When I put landing rate 800 and enabled the module (I'm using php 5.3) Quote
Administrators ProAvia Posted January 10, 2017 Administrators Report Posted January 10, 2017 2 hours ago, joooseb said: Help!! Strict Standards: Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135 Settings Are Saved Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 145 Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in /home1/mcfilmsp/public_html/php/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 147 When I put landing rate 800 and enabled the module (I'm using php 5.3) See my reply to your post 'Expense Error' here: Quote
fidaperkasa Posted January 21, 2017 Report Posted January 21, 2017 Hello, I want to use this autopirep. When I was completed install this. I've some error when I tried to enable. Pic: Any one can you help me? For your information, our VA isnot using pilot client. I use IPS from Jasper Bussemaker to check our pilot online and record flight data automatically. I want to use this Auto pirep to auto accepted or rejected when Pilot not Online in Network. Just it, no other parameters. Regards. Quote
sac001 Posted March 23, 2017 Report Posted March 23, 2017 I have a 15 year old VA company in Brazil recently I change for phpVMS control my VA but until now I can't finde how make a Auto pirep work. Don't have errors message but don't work. Can you help me Quote
sac001 Posted July 12, 2017 Report Posted July 12, 2017 On 23/03/2017 at 5:15 PM, sac001 said: I have a 15 year old VA company in Brazil recently I change for phpVMS control my VA but until now I can't finde how make a Auto pirep work. Don't have errors message but don't work. Can you help me I have a 15 year old VA company in Brazil recently I change for phpVMS control my VA but until now I can't finde how make a Auto pirep work. Don't have errors message but don't work. Can you help me Quote
Members Vangelis Posted July 12, 2017 Author Members Report Posted July 12, 2017 Send me ftp information and demo admin of phpvms in pm and i will have a look at it Quote
Virtualei Posted July 28, 2017 Report Posted July 28, 2017 (edited) On 05/12/2015 at 5:53 PM, danydj96 said: Hello, I have recently installed this module but once I submit the PIREP it says to me that: Could you please help me? Thanks a lot! Hi I get this error. Can anyone say if it was fixed. Cant seem to find a fix in this thread @Vangelis Many thanks Edited July 29, 2017 by AJCWebServices Quote
Virtualei Posted July 29, 2017 Report Posted July 29, 2017 (edited) 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 Edited July 29, 2017 by AJCWebServices Added file Quote
web541 Posted July 29, 2017 Report Posted July 29, 2017 What version of phpVMS are you using? If you're using phpVMS 5.5.x, try replacing that function with this one 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; PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED); // 1 is accepted LogData::addLog(Auth::$userinfo->pilotid, 'Approved PIREP #' . $pirepid); # Call the event CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details); } 1 Quote
Virtualei Posted July 30, 2017 Report Posted July 30, 2017 Hi web541 Yes I am using 5.5 That function has worked. Thank you very much for your help. Much appreciated Alan Quote
eliezerazevedo Posted August 14, 2017 Report Posted August 14, 2017 On 29/07/2017 at 9:06 PM, AJCWebServices said: Hi web541 Yes I am using 5.5 That function has worked. Thank you very much for your help. Much appreciated Alan Could you make the updated module available for version 5.5 of phpvms? Quote
Members Vangelis Posted August 15, 2017 Author Members Report Posted August 15, 2017 autopirep.zip Quote
eliezerazevedo Posted August 15, 2017 Report Posted August 15, 2017 (edited) Flights are not being approved automatically, do you have any idea what's going on? PirepAcData.class.zip Edited August 15, 2017 by eliezerazevedo Quote
Virtualei Posted August 15, 2017 Report Posted August 15, 2017 (edited) On 25/01/2014 at 9:11 PM, Vangelis said: You placed it in the wrong function it should in PirepData.class (That is correct) under filereport function at some point in this function put it between # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); and # Send an email to the admin that a PIREP was submitted $sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})"; $message="A PIREP has been submitted by {$pilotcode} ({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n" ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n" ."Aircraft: {$pirepdata['aircraft']}\n" ."Flight Time: {$pirepdata['flighttime']}\n" ."Filed using: {$pirepdata['source']}\n\n" ."Comment: {$pirepdata['comment']}"; $email = Config::Get('EMAIL_NEW_PIREP'); if(empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); CentralData::send_pirep($pirepid); // Reset this ID back DB::$insert_id = $pirepid; self::$pirepid = $pirepid; return true; } so it should be something like this # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); FacebookPost::FacebookPostFlight($pirepid); PirepAcData::search($pirepid); # Send an email to the admin that a PIREP was submitted $sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})"; $message="A PIREP has been submitted by {$pilotcode} ({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n" ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n" ."Aircraft: {$pirepdata['aircraft']}\n" ."Flight Time: {$pirepdata['flighttime']}\n" ."Filed using: {$pirepdata['source']}\n\n" ."Comment: {$pirepdata['comment']}"; $email = Config::Get('EMAIL_NEW_PIREP'); if(empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); CentralData::send_pirep($pirepid); // Reset this ID back DB::$insert_id = $pirepid; self::$pirepid = $pirepid; return true; } That is why it doesnt work Make sure you have this correct. Also your landing rate should be minus eg -500 Edited August 15, 2017 by AJCWebServices added minus tip Quote
eliezerazevedo Posted August 15, 2017 Report Posted August 15, 2017 7 hours ago, AJCWebServices said: Make sure you have this correct. Also your landing rate should be minus eg -500 Thanks for the help, it worked perfectly! 1 Quote
Tummi Posted August 24, 2017 Report Posted August 24, 2017 how can i disable just the reject? if an pirep can't be accepted automaticly, i would like to let an admin review the pirep Quote
smokey68 Posted August 25, 2017 Report Posted August 25, 2017 This is how i fixed pirep filing error never had a problem Quote
eliezerazevedo Posted September 2, 2017 Report Posted September 2, 2017 An unexpected problem has appeared. Everything was going well, but I noticed that the flights are being approved and the pilots are not receiving payment for the flight. any idea what it is? Quote
Members Vangelis Posted September 2, 2017 Author Members Report Posted September 2, 2017 i dont think it has anything to do with the module i would sugest to turn on the logs and see if there is anything in there Quote
st852 Posted September 5, 2017 Report Posted September 5, 2017 An error occurred PHP Fatal error: Class 'FacebookPost' not found in PIREPData.class.php on line 815 Quote
Members Vangelis Posted September 5, 2017 Author Members Report Posted September 5, 2017 there is no facebookpost in this module are you sure you have he right one ? Quote
st852 Posted September 5, 2017 Report Posted September 5, 2017 # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); -----> FacebookPost::FacebookPostFlight($pirepid); Quote
Members Vangelis Posted September 5, 2017 Author Members Report Posted September 5, 2017 remove this line it doesnt work anymore since facebook changed their api i do not know where you got this Quote
st852 Posted September 5, 2017 Report Posted September 5, 2017 He does not work automatically, I query apache_error.log to see the error message Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.