-
Posts
25 -
Joined
-
Last visited
-
Days Won
3
KnightAviation last won the day on January 3 2023
KnightAviation had the most liked content!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
KnightAviation's Achievements
-
I know this is a very old thread but it's on a similar subject so thought i'd ask the question here to try and keep things in one place. Is there a way to use a negative pay, so a pilot is charged rather than receiving for conducting certain flights? What we're looking to introduce is a flight school of sorts so pilots are paying for "assessments" on each subject passed. I've tried putting in a "-" in the pilot pay but all that does is create a zero pay return.
-
That's great thanks! The version is just saying 7.0.0-dev when you click on it so not much help. I'll get the updated version uploaded and see if that resolves the issues and then upload the logs if it doesn't. In the meantime i'll fix those pirep errors
-
The saga continues.. 😁 We've managed to restore the site back to the install we did around November 2021 and everything that worked before still does with no data loss. (That's the good news.) I can't see anywhere that contains a version number other than 7.0.0-dev. I suspect it's the one prior to +220307.00bf18. I've installed Version v3.0.19 of disposible basic as suggested but i'm still getting "500 : SERVER ERROR" on some pages: /dfleet /dhubs/ICAO * (/dhubs itself works fine and lists the active hubs - it's only when clicking on the ICAO url link for the particular hub that the error occurs). * the airport pages also work showing the metar, map, and departure/arrivals. /dstats * main page loads but the links to the "top airports" return the "500 : SERVER ERROR". * the buttons under "General Statistics" to change the "pilot month" etc do nothing. So... some thoughts on where I might have gone wrong: Given the install date/version of phpvms itself, do I perhaps need to use an even earlier version? Have I failed to do something in the setup of the module itself that's causing it to look in the wrong places? I only installed "disposable basic"... do some of the above dependencies require the extended module installed too? I have installed the files for "disposable theme" but we don't use that, I'm using a clone of "default" as you previously advised. (as a side note, when I did try to switch to your theme I got the "something went terribly wrong" page... perhaps that might be useful information with regards the other bits?) I doubt this bit is relevant but the health check in the admin module shows: * 343 Pireps associated with MISSING aircraft <-- fairly sure this is because we wiped the fleet and started again * 2275 Acars data entries associated with MISSING pireps <-- no idea on that one! Thanks again for your time and patience!
-
Thanks for that info.. will have a look at the older versions once we get the site working again! Thankfully I did do a backup of all the pages I've edited. Unfortunately I didn't know that we couldn't run PHP8 myself until after I'd tried to update. This evening's task is a re-install of the previous version after which I can delve into github and find the previous version of your very useful widgets etc. Every day's a school day as they say!
-
Sadly the latest version requires PHP8 and it can't be installed onto the server we use so looks like we're stuck with the older version unless you're aware of a work-around? As it stands, the only think that isn't working is the link to dfleet.
-
That all makes sense, thank you!
-
As our web guru seems to be taking something of a hiatus at the moment, I'm just checking what files I *need* to update to bring our version up to the current release. I'm assuming (maybe wrongly) that I don't need to do anything to the resources/views/default folder and it's just all the background stuff that needs over-writing?
-
Thanks again. I'll put some thoughts together as to search features on the development forum.
-
Thank you, it was worth an ask. Is it possible to add something to the search blade so that you can look for flights departing within a certain time instead? For example, in the next 1 hour, 2 hours, 4 hours? I tried searching for an example code via google but nothing seemed to be suitable.
-
Is there any way to change the order that the flight cards appear on the flights page. By default it orders them by the flight number but I'd like to change that so it orders them by the departure time. I'm assuming it's part of the code in the "table.blade.php" file. I did try to amend: <a class="text-c" href="{{ route('frontend.flights.show', [$flight->id]) }}"> to: <a class="text-c" href="{{ route('frontend.flights.show', [$flight->dep_time]) }}"> but that doesn't appear to work.
-
What does your Airline do with Finances?
KnightAviation replied to Haru's topic in General Discussions
I know it's not the done thing to bump a thread this old but it had no replies and I have the same question. This used to be a feature of the old version of phpVMS and would be worth bringing back if that's possible? -
You can add the pilot client to the downloads page. Add the file to wherever you store the other downloads (or a subfolder) then go to the "airlines" tab in the admin section of phpVMS and do something like this: The bottom 3 boxes are where you add the file: File Name / File Description / URL to file After filling in those boxes, click save. You may want to upload that Segoe Font Pack too as users on Windows 7 will need to manually install that for the ACARS icons to appear.
- 1 reply
-
- 1
-
Disposable Basic - Sub Pages
KnightAviation replied to KnightAviation's topic in Disposable Hero Addons
I'm using your pack from 30th Nov: I suspect that we're using a VMS install from prior to that. I'll update phpVMS first and then see what happens. Thanks for your help! -
Disposable Basic - Sub Pages
KnightAviation replied to KnightAviation's topic in Disposable Hero Addons
Thanks for the quick reply! I'd already run the clear cache so I think the module is installed ok - i'm certainly getting module admin link/page in the admin dashboard for editing all the aircraft specs etc. The first line of the lavarel log from just after midnight states: I suspect this is more me not adding in a file / link properly than anything wrong with module(s) #NewbieErrors The following is what i've added to the nav.blade file: <li class="nav-item"> <a class="nav-link" href="{{ route('DBasic.ranks') }}"> <i class="fab fa-avianex"></i> <p>{{ trans_choice('ranks', 2) }}</p> </a> </li> <li class="nav-item"> <a class="nav-link" href="{{ route('DBasic.hubs') }}"> <i class="fab fa-avianex"></i> <p>{{ trans_choice('hubs', 2) }}</p> </a> </li> <li class="nav-item"> <a class="nav-link" href="{{ route('DBasic.stats') }}"> <i class="fab fa-avianex"></i> <p>{{ trans_choice('stats', 2) }}</p> </a> </li> Perhaps i've missed something here? I've just clicked on all the links that are currently showing 500 Server Error and the "LAVAREL LOG" shows: [2022-02-24 07:47:03] production.ERROR: Call to undefined relationship [airline] on model [App\Models\Aircraft]. {"userId":1,"exception":"[object] (Illuminate\\Database\\Eloquent\\RelationNotFoundException(code: 0): Call to undefined relationship [airline] on model [App\\Models\\Aircraft]. at /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/RelationNotFoundException.php:34) [stacktrace] #0 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(669): Illuminate\\Database\\Eloquent\\RelationNotFoundException::make(Object(App\\Models\\Aircraft), 'airline') #1 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(99): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}() #2 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(671): Illuminate\\Database\\Eloquent\\Relations\\Relation::noConstraints(Object(Closure)) #3 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(639): Illuminate\\Database\\Eloquent\\Builder->getRelation('airline') #4 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(619): Illuminate\\Database\\Eloquent\\Builder->eagerLoadRelation(Array, 'airline', Object(Closure)) #5 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(587): Illuminate\\Database\\Eloquent\\Builder->eagerLoadRelations(Array) #6 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(188): Illuminate\\Database\\Eloquent\\Builder->get(Array) #7 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(153): Illuminate\\Database\\Eloquent\\Relations\\Relation->get() #8 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(650): Illuminate\\Database\\Eloquent\\Relations\\Relation->getEager() #9 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(619): Illuminate\\Database\\Eloquent\\Builder->eagerLoadRelation(Array, 'aircraft', Object(Closure)) #10 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(587): Illuminate\\Database\\Eloquent\\Builder->eagerLoadRelations(Array) #11 /var/www/vhosts/knightair.co.uk/httpdocs/modules/DisposableBasic/Http/Controllers/DB_AirlineController.php(85): Illuminate\\Database\\Eloquent\\Builder->get() #12 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Modules\\DisposableBasic\\Http\\Controllers\\DB_AirlineController->show('KTF') #13 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('show', Array) #14 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Modules\\DisposableBasic\\Http\\Controllers\\DB_AirlineController), 'show') #15 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\\Routing\\Route->runController() #16 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\\Routing\\Route->run() #17 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #18 /var/www/vhosts/knightair.co.uk/httpdocs/app/Http/Middleware/SetActiveTheme.php(40): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #19 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\SetActiveTheme->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #20 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #21 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #22 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #23 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #24 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #25 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #26 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #27 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure)) #28 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #29 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #30 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #31 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #32 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #33 /var/www/vhosts/knightair.co.uk/httpdocs/app/Http/Middleware/InstalledCheck.php(29): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #34 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\InstalledCheck->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #35 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #36 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #37 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) #38 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route)) #39 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) #40 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) #41 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) #42 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(60): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #43 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #44 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #45 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #46 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #47 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #48 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #49 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #50 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #51 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #52 /var/www/vhosts/knightair.co.uk/httpdocs/app/Http/Middleware/TrustProxies.php(38): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #53 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #54 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #55 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #56 /var/www/vhosts/knightair.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #57 /var/www/vhosts/knightair.co.uk/httpdocs/public/index.php(59): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #58 {main} "} -
Hoping somebody can help here... I've installed a few pages from DB pack which are all showing correctly but I'm struggling to get the next follow on pages which are returning "500" errors. In the "nav.blade" file i've placed the following which all show correctly: DBasic.hubs /dhubs DBasic.stats /dstats Do I need to add the sub directories somewhere, and maybe do another step? dhubs/EGSS (or any other ICAO) is showing as the link on the hubs page but returns to "500" error when clicking on the orange hub name in the hubs page. (airports/EGSS works fine by the way) /dstats returns the "500" error when clicking on any of the airline names. Thanks in advance! EDIT: Topic moved to correct forum. There is a dedicated forum for Disposable Addons. Please post support inquiries for Disposable Addons in this forum.