New: airport lookup server with extended data

13 minutes ago, mischka said:

In my operations.php, around line 338, I have this:

            $tmp = array(
                ‘id’ => $row->id,
                ‘cell’ => array(
                        # Each column, in order
                        $row->icao,
                        $row->name,
                        $row->country,
                        $row->fuelprice,
                        $row->lat,
                        $row->lng,
                        $edit,
                        ),
                    );

Have you added the new fields there?

AH, that might be the piece that’s missing. let me try and see what happens

 

That worked! Now I just have to figure out why the IATA code isn’t going in. Thanks for the missing piece to the puzzle. And I haven’t tried the import function yet either, I’ll get back to ya in a bit.

might be a case senstive problem (iata vs IATA)

by import you mean the automatic add of airports when importing schedules? That *should* work, cause afaik it uses the same mechanism. I haven’t tried it myself actually

3 minutes ago, mischka said:

might be a case senstive problem (iata vs IATA)

by import you mean the automatic add of airports when importing schedules? That *should* work, cause afaik it uses the same mechanism. I haven’t tried it myself actually

Yup that was exactly the case. My db had IATA and it was looking for iata. Working beautifully now, thanks for the help. Hopefully the schedules still work. And I changed the template form for the airports admin/lib/airport_template.csv as well to show the extra colums:

icao,iata,name,hub,country,city,fuelprice,altitude,lat,lng,timezoneoffset,timezone,chartlink 

Dunno if this will help David or not, but did you also change the VACENTRAL_API_SERVER to https://virtualairlines.eu as well? That might cause an issue if the vacentral url is still there. 

 

4 hours ago, mischka said:

It’s strange… the 2nd line below doesn’t show the full url you are calling. 

What is the actual url of your website? Can you send me your phpvms.js by PM? 

Is this for me or Longhaul444?

If for me URL is: http://msfairways.net

Quote

VACENTRAL_API_SERVER to https://virtualairlines.eu

I have check this and it has not been changed.

Should I copy this line over to the local.config.php file and edit it?

David.

Oz Flyer.

18 hours ago, david said:

I have check this and it has not been changed.

Should I copy this line over to the local.config.php file and edit it?

David.

Oz Flyer.

Yes, you need to make the change or add it to your local.config.php otherwise you are just querying the old vacentral server

Sorry for my lateness, we got hammered by a snow storm nobody was expecting. Almost a foot of snow. Power just came back on. Ah I see mischka beat me to it.

Have added VACENTRAL_API_SERVER to https://virtualairlines.eu to local.config file and ask site owner to restart phpvms.

Will report back when restart has been done.

Thanks so far for all the help.

Still not working.

Now today the add airport is no longer a popup window but a fresh page of is own and when you click look up you get a blank page with “Some fields were blank” 

Fix the last post problem with “Add Airport” its now back to being in a popup window but still will not fetch any data.

Hello all,

 

I am new to this and am having an issue with the add new Airport and am trying to follow this thread.  However in first post it says “1) Go to your local.config.php / app.config.php to change your phpvms_api_server”  I have changed the app.config.php but I do not see anything related to phpvms_api_server in the local.config.php.  That line is it supposed to be  added  to the local.config.php and if so where should it be added?

 

Ok UPDATE:

 

I have added the code to local.config.php and as OzFlyer said it is still not fetching any data when adding New Airport and ICAO code.  Any help would be greatly appreciated.

 

Thank you for your time and understanding

22 hours ago, ATACEO said:

Hello all,

 

I am new to this and am having an issue with the add new Airport and am trying to follow this thread.  However in first post it says “1) Go to your local.config.php / app.config.php to change your phpvms_api_server”  I have changed the app.config.php but I do not see anything related to phpvms_api_server in the local.config.php.  That line is it supposed to be  added  to the local.config.php and if so where should it be added?

 

Ok UPDATE:

 

I have added the code to local.config.php and as OzFlyer said it is still not fetching any data when adding New Airport and ICAO code.  Any help would be greatly appreciated.

 

Thank you for your time and understanding

The local.config.php doesn’t need to be changed too much, but rather a few other files.

Have you followed the tutorial here? https://www.virtualairlines.eu/index.php/Blog

web541,

 

Yes I have followed this to a “T”  Have checked it and double checked it.  

12 hours ago, ATACEO said:

web541,

 

Yes I have followed this to a “T”  Have checked it and double checked it.  

Can you please PM me with the name of your VA so I can check in the logs if you are actually reaching the server, and we can take it from there

this still doeesnt work as i have followed everything to the bone and i get all the new fields but still doesn’t fetch the Airport

 

http://prntscr.com/imo2dz

Ok I have was using phpvms v2 and now I have uploaded v 5.5.2 and it works sort of.  Now when I enter an Airport ICAO code and hit lookup the popup goes away and then I get this message

“Some fields were blank!”  and nothing addded.

well i get nothign mate using phpvms 5x

9 minutes ago, Michael2015 said:

well i get nothign mate using phpvms 5x

Yeah mine doesn’t fetch anything either.  I acts like it but then I get the error message posted above.  Does your pop-up box go away after you click on the “Look Up” button?

think when you change these nothing works i would maybe make a back up