Miggel Posted June 22, 2018 Report Share Posted June 22, 2018 Quote Link to comment Share on other sites More sharing options...
Relja12 Posted June 22, 2018 Report Share Posted June 22, 2018 Hello, I am getting these errors: Notice: The template file "/home/relja12/crew.aslva.net/admin/templates/PirepAutoAccept/autopirep_criterialist.php" doesn't exist in /home/relja12/crew.aslva.net/core/classes/TemplateSet.class.php on line 231 Notice: The template file "/home/relja12/crew.aslva.net/admin/templates/PirepAutoAccept/autopirep_settings_mainform.php" doesn't exist in /home/relja12/crew.aslva.net/core/classes/TemplateSet.class.php on line 231 Notice: The template file "/home/relja12/crew.aslva.net/admin/templates/PirepAutoAccept/footer.php" doesn't exist in /home/relja12/crew.aslva.net/core/classes/TemplateSet.class.php on line 231 Any ideas? Thanks! Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted June 22, 2018 Moderators Report Share Posted June 22, 2018 1 hour ago, Relja12 said: Hello, I am getting these errors: Notice: The template file "/home/relja12/crew.aslva.net/admin/templates/PirepAutoAccept/autopirep_criterialist.php" doesn't exist in /home/relja12/crew.aslva.net/core/classes/TemplateSet.class.php on line 231 Notice: The template file "/home/relja12/crew.aslva.net/admin/templates/PirepAutoAccept/autopirep_settings_mainform.php" doesn't exist in /home/relja12/crew.aslva.net/core/classes/TemplateSet.class.php on line 231 Notice: The template file "/home/relja12/crew.aslva.net/admin/templates/PirepAutoAccept/footer.php" doesn't exist in /home/relja12/crew.aslva.net/core/classes/TemplateSet.class.php on line 231 Any ideas? Thanks! Check that those files actually exist on your server. Quote Link to comment Share on other sites More sharing options...
polirom Posted June 22, 2018 Report Share Posted June 22, 2018 (edited) Discharged. Thank you Edited June 22, 2018 by polirom Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 22, 2018 Author Members Report Share Posted June 22, 2018 6 hours ago, Miggel said: Pirep Link with the failures ? Quote Link to comment Share on other sites More sharing options...
Relja12 Posted June 22, 2018 Report Share Posted June 22, 2018 3 hours ago, shakamonkey88 said: Check that those files actually exist on your server. They exist actually Part of code public function getTemplate($tpl_name, $ret = false, $checkskin = true, $force_base = false) { if(substr_count($tpl_name, '.tpl') > 0) { $tpl_name = str_replace('.tpl', '.' . $this->tpl_ext, $tpl_name); } if (substr_count($tpl_name, '.' . $this->tpl_ext) === 0) { $tpl_name .= '.' . $this->tpl_ext; } /* See if the file has been over-rided in the skin directory */ $tpl_path = $this->template_path . DS . $tpl_name; if($checkskin === true && $force_base === false) { if(file_exists($this->skin_path.DS.$tpl_name)) { $tpl_path = $this->skin_path . DS . $tpl_name; } } if (!file_exists($tpl_path)) { trigger_error('The template file "' . $tpl_path . '" doesn\'t exist'); return false; } extract($this->vars, EXTR_OVERWRITE); ob_start(); include $tpl_path; $cont = ob_get_contents(); ob_end_clean(); # Check if we wanna return if ($ret == true) { return $cont; } echo $cont; } By the way, I am using php version of phpvms so maybe that is the issue? Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted June 22, 2018 Moderators Report Share Posted June 22, 2018 2 hours ago, Relja12 said: By the way, I am using php version of phpvms so maybe that is the issue? Change the file extensions for all auto accept files to .php and change all references within those files to ".tpl" to ".php" Quote Link to comment Share on other sites More sharing options...
Relja12 Posted June 23, 2018 Report Share Posted June 23, 2018 Works fine, thank you! Quote Link to comment Share on other sites More sharing options...
polirom Posted June 23, 2018 Report Share Posted June 23, 2018 (edited) I have two errors after installation Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in /home/u352561549/public_html/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 52 Criteria List Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in /home/u352561549/public_html/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 54 Extra Settings change all .TPL extensions to * .PHP but errors are not fixed Edited June 23, 2018 by polirom Quote Link to comment Share on other sites More sharing options...
PikoSim Posted August 19, 2018 Report Share Posted August 19, 2018 Hi @Vangelis what is the link of the version autoaccept? i downloaded the autopirep0.zip and installed it in my host. But it didnt appear in my pilot report area under admin. how do i solve this ? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 19, 2018 Author Members Report Share Posted August 19, 2018 There is a readme did you readme ? Quote Link to comment Share on other sites More sharing options...
PikoSim Posted August 20, 2018 Report Share Posted August 20, 2018 @Vangelis Okay i managed to installed it. but now, it didnt accept or reject it. Keeps saying Pending or basically awaiting for admin to approve which is me. Under " Admin Code that will Reject the Pirep" i already set my pilot id which is 1 since mine is MVA1. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 20, 2018 Author Members Report Share Posted August 20, 2018 Please attach a screenshot of your criteria page and a pirep link with all the fails Quote Link to comment Share on other sites More sharing options...
PikoSim Posted August 20, 2018 Report Share Posted August 20, 2018 2 hours ago, Vangelis said: Please attach a screenshot of your criteria page and a pirep link with all the fails Hi here are the screenshots. Screenshots.zip Quote Link to comment Share on other sites More sharing options...
PikoSim Posted August 21, 2018 Report Share Posted August 21, 2018 @Vangelis Have you taken a look at the screenshots? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 22, 2018 Author Members Report Share Posted August 22, 2018 In the pirep you sended me there are no failed criteria , the pirep need to include the item that you want so the pirep will be declined Example If you want over speed the pirep should include overspeed so that i can copy and paste it for you , also i need a link of the pirep and not a screenshot Quote Link to comment Share on other sites More sharing options...
Mickey Posted August 26, 2018 Report Share Posted August 26, 2018 (edited) Hi @Vangelis Thanks for the MOD, I have installed the Auto Pirep and have no issues with changing things with whats in the ReadMe section. All installed with no errors (.PHP Format) and it wont auto accept any PIREPS. Dont have any errors to go by? And Ideas? Files.zip Edited August 26, 2018 by Mickey Files Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 26, 2018 Author Members Report Share Posted August 26, 2018 Is there a link of a filled pirep that includes all the criteria so thaPIREPData.class.php.zipt the pirep should be declined ? or accept ? also can you try with this file? Quote Link to comment Share on other sites More sharing options...
Mickey Posted August 26, 2018 Report Share Posted August 26, 2018 Will try that file now. The link is http://flyeu.net/index.php/pireps/view/143, however if that fails then this is the pirep below: smartCARS version 2.1.31.3, 2018/8/26 UTC [11:01:46] Preflight started, flying on VATSIM [11:01:46] Flying FSLabs A319X IAE - FlyEU G-FLRF - Spirit of Guernsey [11:19:52] Pushing back with 18553 kg of fuel [11:20:30] Engine 2 is on [11:21:44] Engine 1 is on [11:22:19] Flaps set to position 1 [11:22:25] Flaps set to position 5 [11:22:32] Flaps set to position 8 [11:23:02] Taxiing to runway [11:26:19] Taking off [11:26:38] Climbing, pitch: 12, roll: 2 degrees left, 139 kts [11:26:43] Gear lever raised at 175 ft at 147 kts [11:27:43] Flaps set to position 6 at 2916 ft at 163 kts [11:28:19] Flaps set to position 0 at 3789 ft at 202 kts [11:41:09] Cruising at 32000ft, pitch: 3, 351 kts [15:12:46] Cruising altitude changed to 38000 ft [15:12:47] Cruising at 38000ft, pitch: 2, 406 kts [18:25:42] Descending [18:40:21] Approaching [18:44:25] Flaps set to position 1 at 3682 ft at 224 kts [18:46:29] Final approach, 204 kts [18:47:15] Flaps set to position 2 at 2286 ft at 194 kts [18:47:21] Flaps set to position 7 at 2312 ft at 190 kts [18:47:47] Gear lever lowered at 2218 ft at 182 kts [18:48:43] Flaps set to position 8 at 1202 ft at 164 kts [18:49:03] Flaps set to position 9 at 929 ft at 148 kts [18:50:20] Touched down at -188 fpm, gear lever: down, pitch: 6, roll: level, 103 kts [18:50:21] Aircraft bounced, touched back down at -54 fpm [18:50:45] Landed in 2771 ft, fuel: 2343 kg, weight: 45399 kg [18:50:45] Taxiing to gate [18:51:00] The flight may now be ended [18:51:00] Taxi time was less than 15 seconds [18:51:00] Arrived, flight duration: 07:31 [18:51:06] Flaps set to position 8 [18:51:09] Flaps set to position 5 [18:51:12] Flaps set to position 0 [18:55:03] Engine 1 is off [18:55:03] Engine 2 is off Quote Link to comment Share on other sites More sharing options...
Mickey Posted August 26, 2018 Report Share Posted August 26, 2018 Also that file has resolved my issue, did bring me up a error on smartcars when filling the report but the auto accept did work and it did file.. Thanks for your help! Quote Link to comment Share on other sites More sharing options...
Mickey Posted August 30, 2018 Report Share Posted August 30, 2018 Hi @Vangelis, Thanks for all your help getting it running however do you know how I can fix the error that comes up on SmartCARS now with it possibly may have not filled - However it does file okay? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 31, 2018 Author Members Report Share Posted August 31, 2018 What is the error? Have you tried to get in contact with smartacars? Quote Link to comment Share on other sites More sharing options...
Mickey Posted September 19, 2018 Report Share Posted September 19, 2018 (edited) On 8/31/2018 at 6:17 AM, Vangelis said: What is the error? Have you tried to get in contact with smartacars? error.zip Attached is the error received. SmartCARS see no problem, its since we added the auto accept/reject - Change of files. Edited September 19, 2018 by Mickey Spelling Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 19, 2018 Author Members Report Share Posted September 19, 2018 You need to get in contact with smartacars as far as i know they do not use the standard phpvms pirep filling Quote Link to comment Share on other sites More sharing options...
PikoSim Posted June 25, 2019 Report Share Posted June 25, 2019 Working great. Had to change here and that and got it working nicely for my VA. 1 question tho, am i able to make Fuel Increased to as a criteria after my pilots turn on the engine? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 26, 2019 Author Members Report Share Posted June 26, 2019 The module reads the log and if the words are found then the points are applied, if it is written in the log i think it should work Quote Link to comment Share on other sites More sharing options...
Laurent Posted November 5, 2019 Report Share Posted November 5, 2019 hello I installed the module but it doesn't work does nothing I have installed phpvms 5.5 can someone help me please? my pirepdata.class Thanks PIREPData.class.zip Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 5, 2019 Author Members Report Share Posted November 5, 2019 did you read the readme file ? Quote Link to comment Share on other sites More sharing options...
Laurent Posted November 5, 2019 Report Share Posted November 5, 2019 (edited) I did exactly like this # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); PirepAcData::search($pirepid); Edited November 5, 2019 by Laurent Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 6, 2019 Author Members Report Share Posted November 6, 2019 i need a screenshot of the criteria page in the admin menu and a pirep link 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.