Administrators ProAvia 87 Posted October 19, 2020 Administrators Report Share Posted October 19, 2020 Airport lookup update to work with same API as used by phpVMS v7. Restores ability to lookup airports for airport table. Adds additional fields to airport table for use in your templates. I've been sitting on these files for a while to be sure the beta testers didn't have any issues. Read the README_1ST.txt file for info. Works with phpVMS 5.5.2 and 5.5.2.72 - not tested with phpVMS 2.x - will not work with phpVMS v7. You will need to manually update each airport after installing this mod to get all the new data in the airports table - use EDIT from airport page, click LOOK UP, click Edit Airport. It will not automatically update all your existing airports. Some lesser known airports are not available in the parsed database - you will have to add those manually. Released as freeware. Shall not be uploaded to other sites without written permission. Thanks to all those who contributed to getting this working. NEW Airport Lookup phpVMS 5.5.2.zip 1 1 Quote Link to post Share on other sites
Markanito 0 Posted November 8, 2020 Report Share Posted November 8, 2020 I have a question regarding this, after reading readme file I didn't find PHPVMS_API inside local.config.php but only in app.config.php and when I add LOOKUP and PHPVMS_API lines and install your module it is stuck at Fetching airport data. What could be wrong here? Quote Link to post Share on other sites
Administrators ProAvia 87 Posted November 8, 2020 Author Administrators Report Share Posted November 8, 2020 app.config.php is where all the base settings are. You never change or add anything to app.config.php. All changes/additions are done to local.config.php. local.config.php overrides any like settings in app.config.php. Steps # 3 and #4 need to be followed to the letter. Quote Link to post Share on other sites
cfitz619 0 Posted January 7 Report Share Posted January 7 Hello. Great feature for my new airline! Does this look right? Followed the directions for install but the Lookup feature is not working for my airports. Is it because the vacentral website is down? Thank You in advance for your assistance. Quote Link to post Share on other sites
PaintSplasher 2 Posted January 7 Report Share Posted January 7 I just tested the feature on a fresh install and everything works as it should. Your entry looks correct. Quote Link to post Share on other sites
Administrators ProAvia 87 Posted January 7 Author Administrators Report Share Posted January 7 3 hours ago, cfitz619 said: Hello. Great feature for my new airline! Does this look right? Followed the directions for install but the Lookup feature is not working for my airports. Is it because the vacentral website is down? Thank You in advance for your assistance. The vacentral server is up and correctly providing airport data. The entry above looks correct - check your other entries to be sure they are correct. If it still doesn't work.... What phpVMS version? What PHP version? What MySQL or MariaDB version? Have you changed the default admin skin? Quote Link to post Share on other sites
cfitz619 0 Posted January 7 Report Share Posted January 7 (edited) 6 hours ago, ProAvia said: The vacentral server is up and correctly providing airport data. The entry above looks correct - check your other entries to be sure they are correct. If it still doesn't work.... What phpVMS version? What PHP version? What MySQL or MariaDB version? Have you changed the default admin skin? I'm not sure where the other entries are. PHPVMS: 5.5.2.72 MySQL: 10.2 PHP: 7.2 I have updated my scheme with this one: (This scheme is great!) Edited January 7 by cfitz619 Added Information Quote Link to post Share on other sites
Administrators ProAvia 87 Posted January 8 Author Administrators Report Share Posted January 8 That skin is for the frontend. The Airport Lookup is on the backend - admin panel. If you are using the default admin panel skin it should be fine. Did you import the phpvms_airports_update.sql file as indicated in the directions? Do you have error reporting turned on? Check the logs to see if any errors related to Airport Lookup or VACentral are shown - maybe3 a Cross Site Error. Post any errors here. Quote Link to post Share on other sites
cfitz619 0 Posted January 9 Report Share Posted January 9 Yes, I imported the airport sql into the database. I checked the database and KJFK is there but the airport doesn't show up in "all airports" on my site. I also tried fetching the data for KTPA after turning on error reporting. Still a no go. The error in the log is: [09-Jan-2021 01:49:12 UTC] PHP Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /home/u742478123/domains/flymajesticva.com/public_html/core/common/OperationsData.class.php on line 780 Quote Link to post Share on other sites
cfitz619 0 Posted January 9 Report Share Posted January 9 On 1/7/2021 at 7:08 PM, ProAvia said: That skin is for the frontend. The Airport Lookup is on the backend - admin panel. If you are using the default admin panel skin it should be fine. Did you import the phpvms_airports_update.sql file as indicated in the directions? Do you have error reporting turned on? Check the logs to see if any errors related to Airport Lookup or VACentral are shown - maybe3 a Cross Site Error. Post any errors here. Here is the OperationsData.class.php. The problem is on line # 780 (the last line below has a red X) according to the error log. I believe this is my problem. Not sure how to fix it. Thank You for trying to assist me with this. It is greatly appreciated. Quote Link to post Share on other sites
cfitz619 0 Posted January 9 Report Share Posted January 9 I am trying to provide as much information as possible to solve my issue. Here is my local.config file. Quote Link to post Share on other sites
Administrators ProAvia 87 Posted January 9 Author Administrators Report Share Posted January 9 Can you post the actual entry from the error log? Quote Link to post Share on other sites
cfitz619 0 Posted January 9 Report Share Posted January 9 9 hours ago, ProAvia said: Can you post the actual entry from the error log? I think this is what your looking for. I can't get the logs to open. Sorry if this is not what you meant. I'm new to coding. Kind of learning as I go. Is this the right log? Here is the path: public_html/core/logs/errors.txt [09-Jan-2021 01:49:12 UTC] PHP Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /home/u742478123/domains/flymajesticva.com/public_html/core/common/OperationsData.class.php on line 780 [09-Jan-2021 01:57:17 UTC] PHP Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /home/u742478123/domains/flymajesticva.com/public_html/core/common/OperationsData.class.php on line 780 [09-Jan-2021 02:13:29 UTC] PHP Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /home/u742478123/domains/flymajesticva.com/public_html/core/common/OperationsData.class.php on line 780 [09-Jan-2021 02:17:10 UTC] PHP Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /home/u742478123/domains/flymajesticva.com/public_html/core/common/OperationsData.class.php on line 780 [09-Jan-2021 02:29:42 UTC] PHP Parse error: syntax error, unexpected '<', expecting function (T_FUNCTION) or const (T_CONST) in /home/u742478123/domains/flymajesticva.com/public_html/core/common/OperationsData.class.php on line 781 [09-Jan-2021 02:42:24 UTC] PHP Parse error: syntax error, unexpected '<', expecting function (T_FUNCTION) or const (T_CONST) in /home/u742478123/domains/flymajesticva.com/public_html/core/common/OperationsData.class.php on line 781 Quote Link to post Share on other sites
Administrators ProAvia 87 Posted January 9 Author Administrators Report Share Posted January 9 There should be a file called "error_log" in the root of your phpVMS install and possibly another in phpVMS root/admin. Error reporting must be on. Contact me via PM and maybe I can take a look. Quote Link to post Share on other sites
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.