James251 Posted October 23, 2015 Report Share Posted October 23, 2015 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, Quote Link to comment Share on other sites More sharing options...
web541 Posted October 23, 2015 Report Share Posted October 23, 2015 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 1 Quote Link to comment Share on other sites More sharing options...
OzFlyer Posted February 2, 2016 Report Share Posted February 2, 2016 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. Quote Link to comment Share on other sites More sharing options...
OA01 Posted February 2, 2016 Report Share Posted February 2, 2016 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'); Quote Link to comment Share on other sites More sharing options...
OzFlyer Posted February 3, 2016 Report Share Posted February 3, 2016 Will phpVMS need to be restarted after this change? Or is there away to enable the change from the Admin login? Thanks David Quote Link to comment Share on other sites More sharing options...
mseiwald Posted February 3, 2016 Report Share Posted February 3, 2016 No just make the changes to the file and upload it to the "core" folder. Quote Link to comment Share on other sites More sharing options...
OzFlyer Posted February 3, 2016 Report Share Posted February 3, 2016 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 Quote Link to comment Share on other sites More sharing options...
OzFlyer Posted February 13, 2016 Report Share Posted February 13, 2016 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? Quote Link to comment Share on other sites More sharing options...
OA01 Posted February 13, 2016 Report Share Posted February 13, 2016 The airport look-up doesn't find EVERY airport, just add them manually. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 13, 2016 Administrators Report Share Posted February 13, 2016 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. Quote Link to comment Share on other sites More sharing options...
OzFlyer Posted February 14, 2016 Report Share Posted February 14, 2016 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 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.