Jump to content

Auto Accept/Reject Pirep


Vangelis

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!

Link to comment
Share on other sites

  • Moderators
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. 

Link to comment
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?

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

  • 1 month later...
  • Members

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 

Link to comment
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

Link to comment
Share on other sites

  • 3 weeks later...
  • 9 months later...
  • 4 months later...

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 by Laurent
Link to comment
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...