Adding airports problem

Hi

Config::Set(‘AIRPORT_LOOKUP_SERVER’, ‘phpvms’);

Config::Set(‘PHPVMS_API_SERVER’, ‘http://api.phpvms.net’);

Config::Set(‘PHPVMS_NEWS_FEED’, ‘http://feeds.feedburner.com/phpvms’);

Config::Set(‘VACENTRAL_NEWS_FEED’, ‘http://feeds.feedburner.com/vacentral’);

Config::Set(‘GEONAME_API_SERVER’, ‘http://ws.geonames.org’);

I have tried changing from ‘phpvms’ to ‘geonames’, but its not working. I have added this line: Config::Set(‘AIRPORT_LOOKUP_SERVER’, ‘phpvms’); to local.config.php, however I’m still unable to lookup for airports in phpvms admin panel,

As per this post:

The phpVMS API server is now redundant, so change your code to look like this:

Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms');
Config::Set('PHPVMS_API_SERVER', 'http://api.vacentral.net');
Config::Set('PHPVMS_NEWS_FEED', 'http://feeds.feedburner.com/phpvms');
Config::Set('VACENTRAL_NEWS_FEED', 'http://feeds.feedburner.com/vacentral');
Config::Set('GEONAME_API_SERVER', 'http://ws.geonames.org');

In your local.config.php file

1 Like

I tried to upload new route today using a CSV file and ever airport reports it need to be add manual.

I have check this post and this code is not in the “local.config.php” file but it is in “app.config.php”.

/phpvms/core/local.config.php

/phpvms/core/app.config.php

So I ask which file should it be in?

If the answer is dose not matter both will work - Then what else stops it from download airport data?

Thank you

David.

Both these lines should be in your / /core/local.config.php if not, add them.

Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms');
Config::Set('PHPVMS_API_SERVER', 'http://api.vacentral.net');

Will phpVMS need to be restarted after this change?

Or is there away to enable the change from the Admin login?

Thanks

David

No just make the changes to the file and upload it to the “core” folder.

After I edited the file and re-uploaded to /core It still failed to add the Airport data uploaded the routes OK.

Have tried again today (12 hours later) still the same.

Any other help please?

Short list of some of the Airport in CSV file.

ICAO LGTP not added… retriving information:

Could not retrieve information for LGTP, add it manually

Imported MSF5211 (LGAV to LGTP)

ICAO LGTP not added… retriving information:

Could not retrieve information for LGTP, add it manually

ICAO LGZA not added… retriving information:

Could not retrieve information for LGZA, add it manually

Imported MSF5212 (LGTP to LGZA)

ICAO LGZA not added… retriving information:

Could not retrieve information for LGZA, add it manually

ICAO LGKR not added… retriving information:

Could not retrieve information for LGKR, add it manually

Imported MSF5213 (LGZA to LGKR)

ICAO LGKR not added… retriving information:

Could not retrieve information for LGKR, add it manually

Thank you for any more help

David

Come on some one must have some idea why this is still not working or at least something else to try!

Airline Operations / Add a new airport lookup is working.

So why is the import Schedules via a CSV file not adding airport?

The airport look-up doesn’t find EVERY airport, just add them manually.

If you can perform the lookup function in the add airports section of the admin panel then the upload should work, I am saying should because I have no idea what the csv actually looks like.

Can you use the lookup function in add airports for LGTP? Does it return the info or an error?

If you can use the lookup function then there is an issue with your csv file.

If you can not use the lookup function when manually adding the airport then there is an issue with your api server config most likely.

I just tried a lookup using LGTP in my test instance and the airport is there and populates the fields correctly.

post-198-0-71427000-1455390565.jpg

Could you please post a one line sample of what the file line should look like.

As something must have changed in my CSV file and I can not spot it as it did work.

This is what I have and used to work

code,flightnum,depicao,arricao,route,aircraft,flightlevel,distance,deptime,arrtime,flighttime,notes,price,flighttype,daysofweek,enabled

MSF,2211,YMML,YMPC,-,2500,16.1,-, -,0, ,100, P,1234560,1

Thank you.

David