Thomasha Posted September 28, 2017 Report Share Posted September 28, 2017 Hello Guys in the standart report page(admin/templates/reports_main) the last topic should be the Top 10 of the most Flown Route. Unfortunately on our Site this is not displayed. All other reports works fine but for this even the Headline is missing... Here a snipout of our reports_main file. As written above nothing is displayed: Thanks in advance for your help. BRGDS Thomas Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted September 28, 2017 Moderators Report Share Posted September 28, 2017 This is not part of the default phpVMS coding. The Top 10 Routes part is not shown because the $toproutes variable is not an array (probably it is empty) (according to line 56 on your first screenshot). Can you try and add the following code above line 56 and after line 55? var_dump($toproutes); Quote Link to comment Share on other sites More sharing options...
Thomasha Posted September 28, 2017 Author Report Share Posted September 28, 2017 Hello servetas thanks for your quick reply. I added the line as requested. Here the result. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted September 28, 2017 Moderators Report Share Posted September 28, 2017 Ok, this means that the $toproutes variable is not populated and as a result it is NULL. That is why you can't see the Top 10 Routes in your admin center. You should create the required function to populate the "$toproutes" variable. Quote Link to comment Share on other sites More sharing options...
Thomasha Posted September 28, 2017 Author Report Share Posted September 28, 2017 Do you mean this? Modules: StatsData.class Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted September 28, 2017 Moderators Report Share Posted September 28, 2017 Do you have schedules added in your system? If yes, please send us a screenshot of your schedules listing, is the timesflown field counting correctly? Quote Link to comment Share on other sites More sharing options...
Thomasha Posted September 28, 2017 Author Report Share Posted September 28, 2017 Yes we got Schedules but I crosschecked it with our pireps Database and its not counting correct. Schedules view: exported Pirep List for Flight AUA301 : Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.