Jump to content

Recommended Posts

Posted

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!

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

Posted
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?

  • Moderators
Posted
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"

Posted (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

BPHAKEt.jpg

 

 

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

 

 

 

Edited by polirom
  • 1 month later...
Posted

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

  • Members
Posted

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 

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

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

  • 3 weeks later...
Posted (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 by Mickey
Spelling
  • 9 months later...
Posted

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?

  • 4 months later...
Posted (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 by Laurent

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