Top 10 Routes not working

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

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);

 

Hello servetas

thanks for your quick reply.

I added the line as requested. Here the result.

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.

Do you mean this?

Modules:

StatsData.class

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?

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 :