Jump to content

ProAvia

Administrators
  • Posts

    1661
  • Joined

  • Last visited

  • Days Won

    73

Posts posted by ProAvia

  1. To start, let's clear up some terminology....

     

    PHP - PHP is a popular general-purpose scripting language that is especially suited to web development. It is NOT the program you show in your screenshot.

     

    phpVMS - phpVMS is a free and open source virtual airline administration CMS. You will use this program to set up your VA.

     

    Now, on to your issue. We need a bit more info in order to assist you.

     

    What version of phpVMS are you using? There is no version 5. There is 2.1.x, 5.5.2, 5.5.2.72 and 7.

    What versions of PHP are available on your hosting? What version do you intend to use?

    What version of MySQL or MariaDB are you using?

  2. On 3/9/2020 at 6:29 AM, djtiger76 said:

    Hey ProAvia,

     

    I saw another website that mentioned the while vs. foreach functions as a culprit, but was not sure how to rewrite that line. I changed that line and changed debug back to false and no errors. I promise I didn't change that before today. Is it possible a mod i installed could have changed that and created the errors?

     

    Thanks much!

    I highly doubt a module changed it. What you showed in your post is the default for phpVMS 5.5.2 and prior. What I suggested is from phpVMS 5.5.2.72. My change makes it compatible with PHP 7.2 - and should not affect usability.

     

    I usually look for a way to fix the issue rather than turn off error reporting - unless you need to get the site functional again quickly. And I suggest you run a developmemt site using an exact copy of your site so you can test out possible fixes or test new modules while your main site stays available for your pilots.

    • Like 1
  3. Presently there are no add on skins or modules for v7. And the ACARS solution by the developer of v7 is probably going to be payware. It is anticipated that v7 will be out of beta testing and released in the next month or so. I would expect a limited number of skins and modules to follow.

     

    I would suggest reading the documentation to get a better understanding of version 7. 

  4. Its weird you saw the deprecated warning as 'each' wasn't deprecated until php 7.2 

    Have you checked you host to see if they changed the base php version to 7.2

     

    The line in question is:

    while (list($key, $value) = each(self::$values)) {

     

    What happens if you change it to:

    foreach(self::$values as $key=>$value) {

     

    Make sure to back up that file first in case it doesn't work or breaks your site. The above change was made to phpVMS 5.5.2.72 to make it compatible with php 7.2 . And you should be able to set debug mode to off again in local.config

  5. In /core/local.config.php - change the fuel price.

     

    Config::Set('FUEL_GET_LIVE_PRICE', false); // live fuel pricing does not presently work
    Config::Set('FUEL_DEFAULT_PRICE', '.83'); // this is price per pound in USD - change accordingly if you use a different unit or monetary measurement
    Config::Set('FUEL_SURCHARGE', '5'); // this is the price surcharge in percent for non-hub airports - 5% more than a hub airport

     

    • Thanks 1
  6. There is no pilotid=0 in mine either. But I never use the cron job anyway. Never had an issue with the expired bids remaining after the set time frame. I go to the admin evey so often and run the last 4 maintenance tasks manually. Never an issue since I've been using phpVMS... over 6 years.

     

  7. 4 minutes ago, gio1961 said:

     

    I don't know if I understand correctly, however my code is:

     

    Auth::$userinfo->pilotid = 0;

     

    Yes, that is how my code is also. Chances are that there is no pilotid that equals 100.

     

    What happens if you put your pilotid there?

×
×
  • Create New...