Landing Rate Error

Hi, i have just noticed the following error when filing a manual pirep,

Warning: Invalid argument supplied for foreach() in /srv/www/easyjetva.com/public_html/core/common/LandingstatsData.class.php on line 23

I take its because there is no value going into that field, what would be the best option to fix this, im thinking allow null in the database? Or is there something else that would do it.

Hi, i have just noticed the following error when filing a manual pirep,

Warning: Invalid argument supplied for foreach() in /srv/www/easyjetva.com/public_html/core/common/LandingstatsData.class.php on line 23

I take its because there is no value going into that field, what would be the best option to fix this, im thinking allow null in the database? Or is there something else that would do it.

I’m having the same issue. To add to this I get this error when FSFK opens the PIREP page after it submits it to the database.

I have just done a bit of testing and on my test site i dont get the error, the only difference i can see is i still have the old column in the pireps field landing_rate, maybe this is it.

Are you on the beta? That’s from the landingstats addon which isn’t needed anymore as of the last release

ah yes i am, so do i just remove that module and call for the stats the normal way?

<?php echo StatsData::landingstats(); ?>

There’s probably a hook in there, I’d check the addons forum for that topic there, it might have been updated… I’m not sure

I’m having the same issue. To add to this I get this error when FSFK opens the PIREP page after it submits it to the database.

Just remove that line in the common/LandingstatsData.class.php, problem goes away, well for me anyhow.

Hello friends.

I did not find the file Core / Common / LandingstatsData.class.php

you can put the script file.

I look

I dont have the landingstats file as well… any solution how to get this?

The addons forum

Yeah, i know but i don’t know where to start. The files aren’t there to download… and i dont have the files on my ftp server…

i read the landing stats topic a hundred times but i just don’t know where to start :frowning:

Sorry Nabeel… :frowning:

What’s the problem? Since you don’t have that module, you shouldn’t be getting the error that’s here