Jump to content

DisposableHero

Members
  • Posts

    769
  • Joined

  • Last visited

  • Days Won

    124

Everything posted by DisposableHero

  1. As I wrote at GitHub, Missing fields ; hub_id simbrief_type Non-Used Extra Fields (which also can be removed from the database, but it is another matter) cargo_capacity fuel_capacity gross_weight Fares and their relations to subfleets (and flights) is a different subject, I think you will see (code wise) how they work soon And I hope your first PR will fix the csv export/import logic of subfleets (at least partially)
  2. Are you actually saving the aircraft ? Cause if you do not save it, it will not be there. Also your screenshot shows that you have already some aircraft saved (attached to subfleets). Just a basic info, you can not use the same name or registration, they must be unique. Hope you figure it out or provide some logs for us to inspect.
  3. Technically, what the main question owner wants does not need a private token or a private api access ... Those checks can be done simply with the public access (public whazzup data). You can fetch the data (with minimum 15 second interval for both networks), do your checks however you wish and then either store the data in a database table or delete it. If your acars software is sending live data to your phpvms, then you can do your checks live and mark the flight online/offline as you wish. If it is sending all the pirep info after the flight then you need to store the live whazzup data with (prefably utc) time codes (like one copy for every 5 mins and keep the last 24 hours) and then check them according to the pirep (prefably utc) times to see if the pilot was online or not during the flight. Anyway, these are technical details ... I already did it for phpvms v7 with public api access, so it can be done for v5 too. Hope you can find your solution for v5.x series.
  4. I do not know, why you (and most of other lovely human beings) insist on not reading the docs Do we have to link the docs to every question ? https://docs.phpvms.net/acars/install-client#client-config
  5. Yeah, you asked a similar question two weeks ago ... We gave the same answer. You need to check what they offer and compare it to phpvms v7 requirements. We can not do that for you sorry If you wish, you can ask to their support by copy / pasting the requirements or just providing them the docs/requirements link to get a proper answer. Hope you figure it out 'cause once you know the results, rest will be following the docs for install (or looking for another provider).
  6. Do they support, php 7.3 and up ? Do they offer MySQL and/or MariaDB ? Do they have all required php extensions installed and enabled ? Do they have a control panel for you, where you can upload files, create subdomains, manage databases etc. Simply, do their services meet PhpVms v7 requirements ? If so, then follow docs and you will be fine ... If they fail any of the requirements, consider finding yourself a proper hosting service provider. https://docs.phpvms.net/
  7. admin -> airports or admin -> airlines or admin -> fleet or admin -> fleet -> aircraft When editing any of them scroll down and you will see what you are looking for.
  8. Pilots has nothing to do with the server side stuff ... And it is not necessary to worry about it. What they need is first unpack the package to a folder, then to follow simulator side procedures first (like installing the xplane plugin, or installing fsuipc + makerunways.exe for fsx/prepar etc) and after this step double clicking the Acars.exe (or make a shortcut for it to their desktop for ease of access) If you wish you can provide a step by step guide to your pilots to follow for installing Safe flights
  9. If you are asking about creating a template/skin for phpvms v7 with some other (pre defined templating) tools ... Then this is also possible but again you need to make your website compatible with what phpvms v7 templates need. Mainly you need to deal with Laravel Blade at that point , also again from docs -> https://docs.phpvms.net/customize/layouts Hope these help you to find an answer to your questions
  10. If the services they offer are ok to run phpvms v7, then why not ? It is one of your main tasks (as a va admin/owner) to choose the correct hosting provider. Specs are clearly stated here -> https://docs.phpvms.net/requirements Read the docs first, then compare the requirements with that other companies offer.
  11. Sorry for the late reply, I totally forgot this message Can you please change that fields name to CI or CostIndex (no spaces between Cost and Index) and try, the error may be related to the space being used in the name. If this does not help, we may look further.
  12. That line belongs to the code part of "custom" pirep fields which are defined by the va admin (probably by you). /** * Update any custom PIREP fields * * @param string $pirep_id * @param PirepFieldValue[] $field_values */ public function updateCustomFields(string $pirep_id, array $field_values): void { if (!$field_values || empty($field_values)) { return; } foreach ($field_values as $fv) { PirepFieldValue::updateOrCreate( ['pirep_id' => $pirep_id, 'name' => $fv->name], // This is line 577 your error refers ['value' => $fv->value, 'source' => $fv->source] ); } } What that errors says is this "You want me to use the name of a custom field, but I can not find the that custom field itself" I would suggest checking your custom fields defined for pireps first.
  13. Phpvms internal (database level) units are all imperial (us) why did you changed them to metric ... or why did you needed that in the first place You may have spent less time for that script or make it much better in the given amount of time without dealing with conversions.
  14. Yes he is using v7 and the question is asked in v7 section
  15. If you want to, anything is possible by editing your database directly
  16. What are you using for database and which version ... Like MySQL or MariaDB and its full version. (you can find the details at phpmyadmin or your db workbench software) Some older versions of Maria is not handling index related commands well (or as expected)
  17. Glad you sorted that out, safe flights
  18. No, it is not possible to give awards/medals to users manually. Contact the module developer if you are using some 3rd party addon for tours, if you developed it yourself then check how award logic is running and create your own awards class for tours.
  19. If you have any backup at your hosting service try getting the file from there (env.php is not changed much, so any old backup will be fine), if not you may need to re-install to get a new env.php 'cause when it is deleted there is no pre-defined way to build it back (with previous data it had in it). What you can do, as a workaround, create a new database first, install latest dev by using that new empty database. Finish the install, edit your new env.php and put old database details to that file. At least you will have your old data back.
  20. I just want to add a line to @Simssmith 's nice message though vmsAcars also works well with good old Fs2004 (Fs9) If someday, an old veteran simmer wants to use Fs9, support is there. A nice to have feature for us 'cause most of my group still have Fs9 installed and we use it And thanks for your kind thoughts and message @Vahid , hope you enjoy using phpvms v7 and vmsAcars like we do.
  21. It is defined during setup, if you skipped that step at that time then you can change your site/application name from env.php file
  22. Sorry, I was just trying to give you some ideas about how it can be done ... The information you need (for both) is open to public via web, you can search documents and/or courses if you wish to proceed on your own, if not you can hire a freelancer to do the coding for you (but I am not that guy). Hope you figure out the best solution for your needs.
  23. Looks like you are trying to echo an array, you may need to do a loop in that array to get the results or implode it ... Solution depends on the array structure and contents, also your expected result. https://www.php.net/manual/en/language.types.array.php https://www.php.net/manual/en/function.implode.php https://www.php.net/manual/en/control-structures.foreach.php
  24. Looks like you do not want to read the basic guide with attention or skipped that part 'cause I think I was clear enough when writing exactly this about airports; So the answer of your question was yes and still yes Just read guides, you will set it up and not loose your va, it is not quantum science after all but without reading (docs and forum posts) you will keep asking already explained details when you encounter a problem. Which is a time loss for both you and the person trying to help you We all passed that first steps and that guides (and official docs) are the best way to overcome that period. Best wishes,
  25. Do not mind the date the link posted The contents of that link is always the latest build ... So that topic was posted (or the file entry to forum done) at Jan.27 but the contents you download when you click that link is the latest. http://downloads.phpvms.net/phpvms-7.0.0-dev.tar.gz http://downloads.phpvms.net/phpvms-7.0.0-dev.zip Latest dev is stable, that error you faced lived only a day or two days and was a little mistake to add some scripts to a wrong place Fixing it without an update was possible easily. Starting from over or just updating is up to you ... Both possible since you are at the beginning and trying to get it working and learning, but later your only chance will be an update So try updating first to get used to that (which is only uploading and overwriting though but may need some special operations depending on the update). PhpVms v7 is not yet published or released, this is why you have only some beta releases and the latest development build. You can of course stick with latest dev and do not update it for a long period of time, what you will miss is possible new features and/or bug fixes etc. And if you follow basic procedures, updating the application does not affect your changes and or theme. So why keep yourself from using always the updated latest build ? Anyway, just follow some guides, use theme duplicating procedures and have your own theme files and keep your visual changes safe from updates. This way you can easily update your core application without any hesitations. I am not here to force you to do some things, but believe me, importing data directly to database would probably give you more headaches and will lead you more bigger problems when you think that all is ok. This is the main advise, the main developer and us (users/3rd party developers), we give to new users ... Do not mess up with the database unless you really know what you are doing and what will be the results on v7 core code. I do not know how was the VAM data, if it is really in a shape matching all phpvms requirements then it may be fine, I do say 'may' because it is really risky What was the problem when you tried to import an airport, was it not found , was the icao correct, does that airport had all necessary fields in the csv file for import etc etc ? I kindly suggest importing flights though, phpvms v7 will add necessary (missing) airports to your database, no need to have all world airports there in the beginning. You can read my guides about this logic too 'cause right now I am just repeating myself about things I already wrote and all is open publicly. https://docs.phpvms.net/ https://forum.phpvms.net/forum/57-general-discussions/ ( 4 pinned topics there ) https://forum.phpvms.net/forum/64-disposable-hero-addons/ ( 2 pinned topic here too , even though you do not use any of my addons, that theme duplicating procedure explained there applies to all themes including default ) Hope you manage this out and have a working v7 copy soon
×
×
  • Create New...