Strider Posted July 26, 2020 Report Share Posted July 26, 2020 the landing rate they can't exceed. and make sure it is enabled, and not disabled. Quote Link to comment Share on other sites More sharing options...
Ither Posted July 27, 2020 Report Share Posted July 27, 2020 11 hours ago, AlexOlPed said: I attach the pirepdata.class PIREPData.class.php.zip 11.09 kB · 0 downloads Can you check your PilotData.class.php and search for "public static function updatePilotPay" See if that exists? Quote Link to comment Share on other sites More sharing options...
AlexOlPed Posted July 27, 2020 Report Share Posted July 27, 2020 6 hours ago, Ither said: Can you check your PilotData.class.php and search for "public static function updatePilotPay" See if that exists? No, in my file PilotData.class.php not exists the function updatePilotPay. It's for this reason the problem? Quote Link to comment Share on other sites More sharing options...
Ither Posted July 27, 2020 Report Share Posted July 27, 2020 4 hours ago, AlexOlPed said: No, in my file PilotData.class.php not exists the function updatePilotPay. It's for this reason the problem? Yep; few posts up I posted about this -- he calls a function that is missing from phpvms (dunno why) but I re-added it and then his module worked fine. Here is the function you need to add back to that class file. /** * Update a pilot's pay. Pass the pilot ID, and the number of * hours they are being paid for * * @param int $pilotid The pilot ID * @param int $flighthours Number of hours to pay the pilot for * @return bool Success * */ public static function updatePilotPay($pilotid, $flighthours) { $sql = 'SELECT payrate FROM '.TABLE_PREFIX.'ranks r, '.TABLE_PREFIX.'pilots p WHERE p.rank=r.rank AND p.pilotid='.$pilotid; $payrate = DB::get_row($sql); $payupdate = self::getPilotPay($flighthours, $payrate->payrate); $sql = 'UPDATE '.TABLE_PREFIX.'pilots SET totalpay=totalpay+'.$payupdate.' WHERE pilotid='.$pilotid; DB::query($sql); if(DB::errno() != 0) return false; return true; } Quote Link to comment Share on other sites More sharing options...
AlexOlPed Posted July 27, 2020 Report Share Posted July 27, 2020 1 hour ago, Ither said: Yep; few posts up I posted about this -- he calls a function that is missing from phpvms (dunno why) but I re-added it and then his module worked fine. Here is the function you need to add back to that class file. /** * Update a pilot's pay. Pass the pilot ID, and the number of * hours they are being paid for * * @param int $pilotid The pilot ID * @param int $flighthours Number of hours to pay the pilot for * @return bool Success * */ public static function updatePilotPay($pilotid, $flighthours) { $sql = 'SELECT payrate FROM '.TABLE_PREFIX.'ranks r, '.TABLE_PREFIX.'pilots p WHERE p.rank=r.rank AND p.pilotid='.$pilotid; $payrate = DB::get_row($sql); $payupdate = self::getPilotPay($flighthours, $payrate->payrate); $sql = 'UPDATE '.TABLE_PREFIX.'pilots SET totalpay=totalpay+'.$payupdate.' WHERE pilotid='.$pilotid; DB::query($sql); if(DB::errno() != 0) return false; return true; } oooh, I'm going to try it, I'll tell you how it went shortly. Thank you very much. Quote Link to comment Share on other sites More sharing options...
rpuig Posted August 4, 2020 Report Share Posted August 4, 2020 Hi! I'm having exactly the same problem as AlexOlPedI I tried all explained above and no way to get it working. Thank you, Roger. Quote Link to comment Share on other sites More sharing options...
Dyl1103 Posted October 24, 2020 Report Share Posted October 24, 2020 (edited) Bumping an old topic, so hopefully someone can help! So, I've been playing with this module for a few weeks now. FINALLY got it to auto accept/reject (after reading all 12 pages here) BUT, when a Pilot submits a PIREP using our SMARTCARS or manually, it throws a connection error (but still files the PIREP and processes it accordingly). The issue comes from the line that's added to PIREPdata.class.php (because when I remove it, the error goes away and it doesn't autoaccept/reject), which is: PirepAcData::search($pirepid); Thoughts? Thanks! Edited October 24, 2020 by Dyl1103 Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted October 24, 2020 Author Members Report Share Posted October 24, 2020 This module never played well with smartacars as the do no use the functions of phpvms for the pireps Quote Link to comment Share on other sites More sharing options...
Dyl1103 Posted October 24, 2020 Report Share Posted October 24, 2020 That's what i figured it would boil down to. No worries, thanks! Quote Link to comment Share on other sites More sharing options...
olivers1989 Posted January 23, 2021 Report Share Posted January 23, 2021 Hello, i tried to instal lthis module but i get the following eror messages... find attched... Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 24, 2021 Administrators Report Share Posted January 24, 2021 Search the forums for ---- non static method After you fix those, see what other errors are left. Seems like you may be missing maybe 3 files as well. Quote Link to comment Share on other sites More sharing options...
RedKingOne Posted September 23, 2021 Report Share Posted September 23, 2021 Would anyone happen to have the current download link for this module?? Thank you for the assistance in advance. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 23, 2021 Author Members Report Share Posted September 23, 2021 Quote Link to comment Share on other sites More sharing options...
RedKingOne Posted September 24, 2021 Report Share Posted September 24, 2021 23 hours ago, Vangelis said: Thank you @Vangelis. I still have all the notes you gave me years ago on how to install and configure the module. Very helpful!! Quote Link to comment Share on other sites More sharing options...
DDm Posted November 14, 2021 Report Share Posted November 14, 2021 On 9/23/2021 at 12:08 PM, Vangelis said: Good day I have a question i have installed this and followed the read me file just to verify if I installed this and nothing pop up you said to switch the tpl files to php or what would I do in this instance now Quote Link to comment Share on other sites More sharing options...
miniarma Posted November 18, 2021 Report Share Posted November 18, 2021 This module still does not work as it should, even after a reupload from the developer from what I can assume to be a fixed version? Would be pointless upload a broken version right ? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 18, 2021 Author Members Report Share Posted November 18, 2021 I would have a look first if you have added the right criteria according your pirep Quote Link to comment Share on other sites More sharing options...
DDm Posted November 21, 2021 Report Share Posted November 21, 2021 On 11/18/2021 at 2:50 PM, Vangelis said: I would have a look first if you have added the right criteria according your pirep Ok because I can see it in my phpMyAdmin in the server but it doesn't show up exactly in the admin center off the website Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 21, 2021 Author Members Report Share Posted November 21, 2021 Then it is not installed correctly as there should have been a menu on the left where you insert the criteria in order for the pirep to be declined If for some reason you havent put any criteria then the module wont wo Quote Link to comment Share on other sites More sharing options...
DDm Posted November 21, 2021 Report Share Posted November 21, 2021 9 hours ago, Vangelis said: Then it is not installed correctly as there should have been a menu on the left where you insert the criteria in order for the pirep to be declined If for some reason you havent put any criteria then the module wont wo ok thx i will try again and if i run into a issue ill let you know Quote Link to comment Share on other sites More sharing options...
DDm Posted November 22, 2021 Report Share Posted November 22, 2021 17 hours ago, Vangelis said: Then it is not installed correctly as there should have been a menu on the left where you insert the criteria in order for the pirep to be declined If for some reason you havent put any criteria then the module wont wo Hey I try to implement it again and got nothing you can look at the photos below to see and probably tell me where I went wrong but I followed all the instructions. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 22, 2021 Author Members Report Share Posted November 22, 2021 if you want please send me your ftp info and i will install it for you Quote Link to comment Share on other sites More sharing options...
DDm Posted November 22, 2021 Report Share Posted November 22, 2021 3 hours ago, Vangelis said: if you want please send me your ftp info and i will install it for you ok thank you Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted February 5, 2022 Report Share Posted February 5, 2022 On 10/24/2020 at 9:39 AM, Vangelis said: This module never played well with smartacars as the do no use the functions of phpvms for the pireps yeah but the comment work fine for landing rate! which helps PIREP Officer working as it gives hind how to handle a PIREP Quote Link to comment Share on other sites More sharing options...
Atcarrillo Posted February 25, 2023 Report Share Posted February 25, 2023 @Vangelis is there a way to exempt manual flight reports from automatically being accepted? Quote Link to comment Share on other sites More sharing options...
masmas Posted February 28 Report Share Posted February 28 @Vangelis Hi, I'm encountering this issue when trying to load the plugin - Any suggestions please? Quote Link to comment Share on other sites More sharing options...
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.