Jump to content

ProAvia

Administrators
  • Posts

    1754
  • Joined

  • Last visited

  • Days Won

    79

Posts posted by ProAvia

  1. 1 hour ago, AMAviation said:

    Have re-installed and seem to get this error? https://prnt.sc/rffb10

    On php V 5.6.40

    It does put the EJA in the airlines however the nothing else does. How can this be fixed? 

    Alex.

    This has to do with the allowed length of the 'ip' field in the database tavle I think.

     

    Since you indicated that you fixed it, how did you do that? Someone may have the same issue in the future and you fix may help them.

  2. In reviewing your screenshot I see some http URL's that need to be changed to https. You will need to go through your files for phpVMS, search for 'http' and replace with 'https'. This is only required for active calls so no need to do it for URL's in a commented out section. If you don't already use a code editor, I suggest the free Notepad++ to make search/replace easier.

     

    In your first 3 errors there are 2 ajax calls and 1 google maps call.

  3. I believe your hosting SSL/HTTPS is set up correctly. In your phpVMS files, go to /core/local.config.php and see if the site URL is set to https also. There may be a few other files that need editing - I think there is a post here somewhere about it. I will look to see if I can find it and link it back here.

     

    Find this line in local.config and verify it's set to https

    define('SITE_URL', 'https://<Your_Site_URL)Here>');

     

  4. Honestly, you need to be much more specific and answer all questions asked in order to get the best help. While you may have provided these answers across multiple posts, chances are no one is going to go looking for that info to ansewer in a new message thread.

     

    PHP 5 - 5.what? 5.3, 5.4, 5.6? Your full PHP version may look something like 5.6.45

    phpVMS version? 2.1.x, 5.5.2?

    What "ACARS Config"? What is the full path to this item? File name?

     

    If you want to use a PIREP reporting program your pilots will need to run the dlient software on their computers while they are flying. And unless you choose to use kACARS_Free you will need to install the module for the program to your phpVMS install on your hosting.

  5. 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?

  6. 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
  7. 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. 

  8. 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

  9. 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
×
×
  • Create New...