Jump to content

Adding airports problem


James251
 Share

Recommended Posts

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,

Link to comment
Share on other sites

As per this post: http://forum.phpvms.net/topic/22757-vacentral-status-and-updates/#entry120870

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

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...
  • Administrators

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_thumb.jpg

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...