-
Posts
775 -
Joined
-
Last visited
-
Days Won
124
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by DisposableHero
-
-
Be sure you are using php8.1 or up and be 1000% sure it is the default version, this is related to either a missing/broken php module or multi php usage problem. Switching to a different php version and cleaning all cache (including nginx if you are using it) may help too.
In some cases, Apache tries to use php8.2 but nginx running on top if is set to utilize php8.1 or vice versa.
Good luck.
PS: Running older versions of phpVMS (like the classic series 2.x/5.x) or older beta versions of v7 does not mean that your hosting service (or server) is fully compatible with the released version
-
13 hours ago, ProAvia said:
It gets updated from time to time.
But if the source DB isn’t updated, neither will vaCentral - even if a vaCentral update is done.
That is the main problem.
Unfortunately both sources vaCentral uses are free and unofficial / public databases. Most of the time they can contain wrong data, saved by contributors, or they can come up with some sort of quick solutions themselves (like automated ICAO codes as TR-00085 etc.)
I posted my concerns about the sources before but so far no solid solution was found, we will have problems from time to time. (Worst part, they do affect vmsAcars operations too, not limited to phpVMS)
-
4 minutes ago, LesJar said:
I have posted the errors I found on trying 3402 airports
They should be reported at GitHub probably (if there is an open repository for it), any reports will be lost in a blink of an eye here at forum.
-
2 hours ago, LesJar said:
The conversion routine I believe uses the Timezone of the Airport obviously to work out the offset to UTC to calculate the UTC value or of course to calculate the local time from the UTC value. There is one problem perhaps in this method is that when you upload your flight schedule and the system uses VACentral to create your Airport record for that flight then some airports in the Vacentral database I have found do not have a Timezone information.
If you know the timezone of the airport in question then you can edit and have a correct record. Like in many other errors (like missing ICAO, wrong IATA, old name etc.) an admin can always edit the airport records via admin interface.
Good luck
BTW, conversion uses Carbon interface and yes it uses the timezone value (it has to)
-
Do you really need an API Key or authorization for this ? Below is a plain query result without an API key.
{ "icao": "EGEW", "iata": "WRY", "name": "Westray Airport", "city": "Westray", "country": "GB", "region": "GB-SCT", "tz": "Europe/London", "elevation": 29, "lat": 59.3502998352, "lon": -2.9500000477 }
And it will be better if you just use the "code" feature of the forum with "php" language selected. Your cleaned up, more readable code will look like this if you do so.
<?php /** * Class and Function List: * Function list: * Classes list: */ /** \file vacentral.php * \brief Text getting data from Vacentral using Curl * \details This Script is used tinstead of Composer installation * \author Leslie Jarrett * \version 1.0 * \date 2025 * \copyright 2025 Leslie Jarrett */ // // GET AIRPORT INFORMATION FROM VACENTRAL // // The following URl string is required to get Airport Information // https://api.vacentral.net/api/airports/[ICAO]?apiKey=[API_KEY] // Where you replace [ICAO] with the Airport code you want to get data forr // and replace [API_KEY] with your user API Key string // Below is a worked example for the airport EGEW // Using my own API KEY which is then hidden from the code // set up your API KEY $ApiKey = 'zzzzzzzzzzzzzzzzzzzzzzzzzzz'; // set up the Airport ICAO code $AirportIcao = 'EGEW'; // set up the first part of the CURL URl $AirportApiUrl = 'https://api.vacentral.net/api/airports/'; // add in the Airport Icao Code $AirportApiUrl = $AirportApiUrl.$AirportIcao; // add in the API Key $AirportApiUrl = $AirportApiUrl.'?apiKey='.$ApiKey; // now process the call to the API using Curl // set the api curl handle $AirportApiHandle = curl_init(); // Will return the response, if false it prints the response curl_setopt($AirportApiHandle, CURLOPT_RETURNTRANSFER, true); // Set the url curl_setopt($AirportApiHandle, CURLOPT_URL,$AirportApiUrl); // Execute the session and store the contents in $AirporApiRaw $AirporApiRaw =curl_exec($AirportApiHandle,); // Closing the session curl_close($AirportApiHandle); // unpack the Json data to PHP array $AirportData = json_decode($AirporApiRaw, true); // the array $AirportData will have the following fields // array(10) { // ["icao"] => string(4) "EGEW" // ["iata"] => string(3) "WRY" // ["name"] => string(15) "Westray Airport" // ["city"] => string(7) "Westray" // ["country"] => string(2) "GB" // ["region"] => string(6) "GB-SCT" // ["tz"] => string(13) "Europe/London" // ["elevation"] => int(29) // ["lat"]=> float(59.3502998352) // ["lon"]=> float(-2.9500000477) // } ?>
Have a nice day.
-
Yeah if they release some changes for the API, improvements like defining avoids, either country or FIR based, those can be easily implemented in the form too. But don't expect everything to be done by phpVMS (or theme developers).
Generally what phpVMS offers you a fully working API access system which is capable of two way communications with their servers. And phpVMS already passes more than enough data to that form, in which you can develop your own stuff, apply improvements, following API changes etc. easily.
As an example, SimBrief API allows you to define 4 alternates with their routes, also ETOPS alternates etc. but these are not present in the form. Any VA owner or developer can enhance the form as they wish if required by following the main form logic and the API docs.
This is why I ended my first post with "Good luck and God speed"
-
-
17 hours ago, LesJar said:
I have been reading about the new version of simbrief and was wondering if the Phpvms 7 interface will eventually have the new options as well so that you can fully use Simbrief from within PHPVMS
If you are talking about these, my answer will be "No, because I do not see anything there to be API access compatible". These are mostly for their own planning page (or edit flight plan page).
Any API (and phpVMS) user can create lots of features internally on their end, as an example one can allow defining FPL Remarks via their code, or aircraft equipment selection (including PBN) etc.
If you check the API documents (of SimBrief) and the form utilizing that API (at phpVMS) you will see how it works, and then you can develop anything you wish to have.
Good luck and God speed.
-
Hi,
As far as I know, we are using Laravel Socialite to use oAuth, and all of the options (Discord, IVAO, VATSIM) are provided by the system. I am not sure if you can alter it to work with a totally custom system, but it should be possible. Below are docs related to it;
https://laravel.com/docs/10.x/socialite
https://socialiteproviders.com/about/
Hope it helps a little
-
My pleasure, glad it helped a little and gave you some direction
If you need to use them for evaluation purposes, I mean like having a check for gear or flap operation speeds you have two options;
1. Custom rule (vmsAcars premium feature, still being enhanced by development)
2. Custom module (running at web, can run when a pirep gets filed and check log entries for some specific text and then compare speed/altitude, apply a penalty or write a comment etc.)
Above example is for the web, to display stuff but can give you ideas about how to access the log entries.
Good luck for the rest
-
Hi @ang143
What you want or seek is already a part of vmsAcars log entries, you can see an example below from one of my old reports. Every logged action was being reported back to your phpVMS with location, heading, altitude and speed value.
And this is what it looks like nowadays with latest version of vmsAcars.
Technically speaking, the values are still reported back and saved in your database, just the textual display is removed (and i think this is better because it gives us more control over the display). Depending on your needs you can still reach them via some custom work (like displaying only, evaluating etc.) As an example, by editing your pireps/show.blade.php you can have something like this.
I just added some fields to show you the possibilities, location is there too.
@foreach($pirep->acars_logs->sortBy('created_at') as $log) <tr> <td class="col-md-3">{{ $log->created_at->format('d.M.Y H:i') }}</td> <td>{{ $log->log }}</td> <td>{{ $log->altitude_agl.'ft agl | '.$log->altitude_msl.'ft msl' }}</td> <td>{{ $log->gs.'kt gs' }}</td> <td>{{ $log->ias.'kt ias' }}</td> </tr> @endforeach
Hope this helps, safe flights.
-
19 minutes ago, MarcosMota said:
Yeah…but lets say thats what I am working with atm, does anybody know how to link these pages?
If you just want to add a link pointing to your WP, edit the menu/nav of your phpVMS theme then. This is just templating and basic html / stylesheet stuff.
Check nav.blade.php of your theme, it will probably hold the menu items or at best it will guide you to the file holding menu items.
Good luck
-
11 hours ago, Eric0173 said:
Excuse me, what single sign-on types does PHPVMS support? CAS? OAuth? Or what? I have my own "unified identity authentication" system. Does it support docking? Is there any solution?
We do have some oAuth providers enabled (Discord, IVAO and VATSIM) but they do not provide automated registration, only sign in and account linking options are provided.
https://docs.phpvms.net/oauth/discord
-
-
On 3/26/2025 at 9:00 AM, Potus88 said:
Hello everyone,
I’m flying with X-plane 12 and acars to register pireps for my VA, however since xplane last update, acars record some random pauses during the simulations. For a 1h flight I can get about 7 mins of pause, and this makes all my pirep rejected.
do you know this issue and what can I do to resolve it?Thank you
luca
Acars logs would be great, if you can upload them to somewhere and share a link we can investigate. (Kindly check Documents\vmsAcars\logs folder)
Also kindly check the AcarsConnect.txt file, which is located at the root of your XP installation, share the contents of it too
As far as I remember, whenever you go to any menu XP sends a "sim pause" signal, which is understandable. If this is the case, like you opened a menu and then adjusted settings or some other stuff this can happen (imagine like you do this 7 times and each is around 1 minute, then it will be a total of 7 minutes pause for phpVMS).
While sharing the logs, would you please think about the above logic, did you "unintentionally" paused your sim for doing settings etc?
Safe flights
-
You should use "Paid Services" section or clearly explain your problem/question to get public help.
-
Hi @IFL442,
Of course I know the error, it is generic one and the logic of it is already posted in "most common errors" topic. Basically it says that you have a problem in your assignments (like a deleted / missing flight) and that blade of SPTheme is missing a failsafe.
Just check line 27 of SPTheme/modules/DisposableSpecial/widgets/assignments.blade.php and if possible try renaming that file (which will allow the default blade I shipped with DispoSpecial to be used). If the error comes up with my original blade, I can try to debug but if it is only happening on the modified ones shipped by @PaintSplasher, he may need to investigate too
{{ optional($as->flight->dpt_airport)->name ?? $as->flight->dpt_airport_id }}
This is from my original blade, it checks for the airport and uses its name, if not it uses the dpt_airport_id. But before all these optional stuff I do have a generic @if($as->flight) check, which eliminates deleted / missing flights. Looks like SPTheme version may be missing this.
Unfortunately I do not see that generic check in SPTheme version of the blade.
Either you may need to wait for Thorsten to publish an update or you can replicate my wider check manually on that blade too.
Hope this helps
-
1
-
-
18 hours ago, ProAvia said:
@FlightMedicVirtual - are you using VA Base for your site software?
Looks like so.
-
Hmmm, I think I added a defined space to footer and used some space above it both were in stylesheet (to be compatible with Mac/iPad devices)
-
Also, if you like to store those times as local values, conversion to UTC would still be possible.
Like displaying the local times directly from the flight (as you entered them), then converting the value to UTC as additional display (opposite of the example above)
-
As everything else in aviation, all departure - arrival times should be in UTC too. @ProAvia is right, the flights table only stores those values as text, not datetime values (timestamps etc.), thus you can use them as you wish.
Considering that people use them as UTC times and prepare their schedules in UTC format, some addon themes provide UTC to Local conversions for those values. What those addons do is basically convert those "texts" to "time values" (by default they are in UTC as expected) then convert the utc to local time of the airport.
You can check the example below for that conversion.
Good luck
-
It is not about being free or payware, or about making profit from something... Required code is already shipped with Disposable Special.
But this does not mean that everyone can use it or just enable/disable it easily. And it is not "version locked" or "version specific", people using my method are well aware of how to edit core system files, how to track changes and take responsibility of their alterations etc.
It is not something you install and then use style, when it comes to editing/altering core phpVMS files it becomes something different.
Hope it is more clear now
-
1 hour ago, a7c12a5 said:
On
```
Please note; If your PhpVms weight settings are KG, just convert the amount you found to kilograms before adjusting the cargo fare capacity.
```
You mean convert from kg to lbs?
Also, is this still valid?
Regardles my configured units the cargo fare would always be stored in phpvmsv7 db units which are lbs. So I have to always put that in lbs regardles my setting.
Yes it is still valid.
Don't mix fare capacity values with weight and fuel values. Fare capacities are not casted to some unit, they are just values, plain numbers as you write/save. Aircraft weights and/or fuel figures are casted with units and they are shown in your own unit (settings from admin) but always stored with internal units (which is pounds, lbs).
So during live operations, for example generating some cargo load to your pirep, that capacity number is used directly. Thus, yes you still need to define your capacities manually in kg if you are using kg at admin settings (for weight units).
Hope this helps.
-
Hi @IFL442,
What you are asking is directly phpVMS v7 related, not something my addons can control or should control directly. Fares are a part of the core (as we call it) and they can not be altered with a module (without playing with core files). We can inject our custom income and expenses but it is not possible for the main fare (ticket income/expense).
I do have a solution in Disposable Special (dynamic fare price calculation for each pirep when they get filed and accepted) , which I am using on my installs for a long time (and some friends also adopted it to their phpVMS v7's files) but unfortunately I can not share it publicly (or make it automatically installed) because it needs to be re-done after each phpVMS update.
I also tried to implement something similar to what I have for phpVMS v7 itself but due to some logical differences it was not possible, thus that idea was trashed
This is still something open for improvement at v7's core systems.
Best wishes,
Fatih
Error 404 on installation SOLVED
in Support
Posted
Did you checked docs about Apache vhost config ?
https://docs.phpvms.net/installation/vhost#apache
At least you can see the difference(s) between your config and the example, most probably your RewriteEngine is off or miss configured, thus your server is trying to open a physical directory (/install) instead of considering it as a route.
Good luck