Jump to content
Vangelis

Auto Accept/Reject Pirep

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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"

Share this post


Link to post
Share on other sites

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

BPHAKEt.jpg

 

 

change all .TPL extensions to * .PHP but errors are not fixed

 

 

 

Edited by polirom

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

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 by Mickey
Files

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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 by Mickey
Spelling

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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  

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...