Jump to content

ProAvia

Administrators
  • Posts

    1648
  • Joined

  • Last visited

  • Days Won

    72

Posts posted by ProAvia

  1. This is just a wild a$$ guess - 

    In '/core/codon.config.php', comment out the 'define ('SITE_ROOT.........' line. Below it, enter:

    define ('SITE_ROOT', str_replace('phpvms/core', 'phpvms', dirname(__FILE__)));

    OR

    define ('SITE_ROOT', str_replace('phpvms'DS.'core', 'phpvms', dirname(__FILE__)));

    OR

    Some other combination of the above.

    I have absolutely NO CLUE if this will work, but may be worth a try.

  2. Certainly weird.

    My intent on a new install was to be sure we were all on the same page... virgin, unedited install.

    The errors you see on the check install page are very similar to what I saw on mine. I think the check install routine and/or the checksums aren't up to date - not in your install, just that they were never updated. See the reference to '.tpl' files?

    I think you're right about the 'coreyand' and 'core' issue. Hopefully someone with more knowlege comes along soon with a possible solution.

  3. Certainly strange.....

    I'm assuming all your VA stuff is going to be under '.../flight/'. If that's the case, try a totally new install of phpVMS and place all the files/folders in '...flight/phpvms/'. create a new DB and install. Don't change anything or copy anything from the present 'errored' install until after you report back here. List any errors, etc you may get. Maybe we can get a clue from there.

    I'm not sure putting phpVMS in the 'phpvms' folder will solve anything, but may be worth a try. Is there anything else in the '.../flght/' folder other than phpVMS files/folders?

    EDIT:

    Verify the default 'crystal' skin is located in '.../lib/skins/' - NOT '.../core/lib/skins/'.

     

  4. Deleting ActivityData.class.php isn't going to alleviate the error.

    RanksData.class.php appears to be calling "ActivityData". So you have 2 options. Either download a new RanksData.class.php for version 2.1.x that doesn't have the call - or - comment out the entire section in your current RanksData.class.php file referencing that call.

    Maybe grab the complete file contents from here:  https://github.com/nabeelio/phpVMS/blob/master/core/common/RanksData.class.php

    If you decide on the second option, post lines 230-260 so someone here can help make sure you are commenting out all of the suspect lines.

    In either case, make a backup of the original file. Then replace the file or contents and test it out.

  5. My old 2.1.936 - installed 4/2014 - doesn't have an ActivityData.class.php. My new 5.5.2 install does have that file.

    I didn't think 2.1.936 came with that file - but I've been wrong before. :lol: Maybe someone can verify if the ActivityData.class.php file was in version 2.

    I believe the error you posted is saying that the ActivityData.class.php file is not present - or maybe not in the correct path.

    In any case, you may want to consider upgrading the the new version 3 once it's released. That should rectify the issue. 

     

  6. 42 minutes ago, shakamonkey88 said:

    Sorry to bring up an old thread but my pilots are getting this error relating to this code when trying to file a PIREP manually on the site. They are getting:

     

    
    Fatal error: Class 'ActivityData' not found in /home/alaskair/public_html/core/common/RanksData.class.php on line 236 

     

    What version of phpVMS are you using?

    In /core/common - do you have an ActivityData.class.php file?

  7. My conversion from 2.1.x to 5.5.2 is mostly complete - I'm just trying to clean up a few items.

    What is the purpose of following statement? - <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>

    I see it in all the 5.5.2 default template folder php files and those of some updated Modules template files. I think it has something to do with security and/or theft of file content. Am I close?

    • If I'm using any modules or custom template file from my 2.1.x install, should I add the statement to the top of all of those template files?
    • Including those in my skins folder?
    • Including those in 'admin/templates'?
    • Should it be in any other files elsewhere in the install?
    • Are there any downsides to including it in the older modules? (I guess worst case is the 'blank page' issue I read about??)
    • Anything else I should know about this?

    Thanks! Really appreciated all the help I've gotten here and for you all putting up with my (mostly) newbie questions! :huh: I've really learned quite a bit through the conversion '"experience".

  8. Restricted rank - yup, that'll do it!

    You can use the same DB with all the original records in it. I did this - after tweaking my new 5.5.2 install to my needs. I probably made it harder on myself than necessary in the process of all this, but I took my 5.5.2 install live last night and everything appears to work as it should.

    Using the original DB allowed me to keep all data from the 2.1.x install.

    Of course, I installed 5.5.2 on the side and tweaked/tested it with all the modules I use first. Then I converted over on my live site, so the pilots weren't waiting for me to finish. Took me several weeks in my spare time. Was a pain, but very do-able with the outstanding help I received from members here. :D

  9. Are the pilots using tbe airline code with the correct flight number?

    As an example - Airline Alpha has the code AL and flight number 1000, Airline Bravo has the code BR and flight number 2000. In kACARS the pilot would need to enter AL1000 for Alpha Airline or BR2000 for Bravo Airline. If they entered AL2000, they will get a flight not found.

  10. On the 'Pilot Brief', the weather is being pulled from flightaware in phpVMS 5.5.2. Look in .../core/templates/schedule_briefing.php lines 50-62 in the default file. If you want to use another WX source, you can change it there.

    As for charts - search the forum here for AirCharts. Integrates into the above page and allows pilot to choose which chart they want to view.

  11. Sadly, even if renamed, the link directly to the registration form WILL eventually be comprimised - IF you allow prospective members access.

    I believe you can re-name the registration form to one your pilots do not know - so only you or your management have access to it.

    You could build your own application form for new pilots to apply to - or be invited to apply to. This form could send an email to you with the new pilots information. Then, if you decide to accept them, you could enter their info into the re-named registration form.

    You could create a link to this re-named registration form on the main page of your admin panel.

  12. Excellent - thanks!

    I had been working on that exact file - but was missing the AS totalhours part. Also added .round($all->totalhours, 2). to tp_index.php to round to two decimal places.

    My TopPilotData.class.php is a little different. Here's the final result - starting on line 54

        public static function alltime_hours($howmany)
        {
            // return DB::get_results("SELECT pilotid, totalhours FROM " . TABLE_PREFIX . "pilots ORDER BY totalhours DESC LIMIT $howmany");
    	return DB::get_results("SELECT pilotid, (totalhours + transferhours) AS totalhours FROM phpvms_pilots ORDER BY totalhours DESC LIMIT $howmany");
        }

     

    • Like 1
  13. I wonder if the issue you are having has anything to do with the version of PHP your host is providing for you? Is it possible that the registration form in phpVMS 2.1.x is not compatible with the host provided PHP version? Or an issue with the RECAPTCHA settings in your phpVMS install?

    Open .../core/lib/recaptcha/recaptchalib.php and look at line 38-40 - they should look like:

    define("RECAPTCHA_API_SERVER", "http://api.recaptcha.net");
    define("RECAPTCHA_API_SECURE_SERVER", "https://api-secure.recaptcha.net");
    define("RECAPTCHA_VERIFY_SERVER", "api-verify.recaptcha.net");

    Also, did you happen to change the public and/or private RECAPTCHA key(s) in .../core/local.config.php - or anywhere else?

    As stated above, you'd be much better served by upgrading to phpVMS 5.5.2 moving forward. In briefly looking at your site, it doesn't appear you've changed the default skin or are too far along in development.

  14. 1 hour ago, flyalaska said:

    Since you mentioned it, I looked in admin. Yes he has 1869 hours transfered.

    Yeah - that's the issue I had too. That column shows all time total hours (since hire or since in your phpVMS) - without adding in transfer hours.

    Look at my possible work-around a few posts above. Although the result isn't sorted by hours - high to low - for combined all time hours + transfer hours. And I don't know how to sort the result from high to low.

    Hoping someone chimes in with a better solution than I stumbled across.

  15. 14 hours ago, flyalaska said:

    I have a small issue again. I have noticed that one pilot who is the top of the all time leaderboard is missing about 2,000 hours. On Top pilot he shows  2,327:05. On the Roster page and his signature he shows 4,196.05 which is the correct time. Any ideas whats wrong?

    Was the missing 1869 hours equal to his transfer hours?

  16. As a follow up to my post above:

    1. I was able to work-around this by changing $all_hours= TopPilotData::alltime_hours(5); to $all_hours= TopPilotData::alltime_hours(8); 

    This effectively gives the display 5 non-staff pilots in the list.

    2. After looking through a few other files, I came across a possible solution. In the second to last code line, I changed echo .$all->totalhours.'</td>' to echo '<td>'.Util::AddTime($pilot->totalhours, $pilot->transferhours).'</td>';

    Whether that's the correct way to do it or not, I don't know.

     

    But I did find another issue..... In #1 - the list from high to low is based on 'totalhours', not the SUM of 'totalhours' and 'transferhours'. As an example:

    • Pilot 1 total hours is 3360
    • Pilot 2 total hours is 4138
    • Pilot 3 total hours is 655
    • Pilot 4 total hours is 1874
    • Pilot 5 total hours is 872

    I'd like the order from high to low

    • Pilot 2 - 4138
    • Pilot 1 - 3360
    • Pilot 4 - 1874
    • Pilot 5 - 872
    • Pilot 3 - 655

    I attempted to place Util::AddTime($pilot->totalhours, $pilot->transferhours) - in several differing variations - in place of TopPilotData::alltime_hours  including the (8); . But it always showed an error.

     

×
×
  • Create New...