Jump to content

ProAvia

Administrators
  • Posts

    1639
  • Joined

  • Last visited

  • Days Won

    70

Posts posted by ProAvia

  1. UPDATE - I married an older DB backup  from May 2022 to his site files. kACARS works as it should.

     

    This means the site owner compromised the DB while adding schedules, aircraft, airports, etc. thru the admin panel - most probably the schedules table has numerous errors in it.

    I am hoping he kept good logs of exactly what he did.

     

    Just another reason to ALWAYS do a backup of your DB and site files anytime you change anything........

     

    Thanks to all who offered help/advice - both here and on Discord - with this issue!

  2. Thanks, I will try resetting the acars table.

    I noticed his acars table is quite long, so may be some bad data there.

     

    PHP version is 7.2 - I also tried 7.0 and 7.1 without success.

    On my site, it works just fine with 7.2

     

    Also uploaded his site files and DB to my hosting. kACARS_Free still doesn't work with his files and DB on my host. So it's not his host, it's something in his files or database.

  3. Do you have a no-attribution license for phpVMS? If not, the license requires "powered by phpVMS" in the footer of every website page that is related to phpVMS. Be sure you are fully in compliance with the licensing terms of phpVMS, all addon modules, etc. 

     

    Ask you host the exact version of MariaDB. Report back once they provide that info.

    phpVMS 5.5.2 or 5.5.2.72 will NOT work correctly when using MariaDB 10.5

     

    The Stisla skin is no longer supported and the developer hasn't been around for a long time.

     

    Non-static method is covered in post #4 above.

     

    Count parameter needs a small coding tweak - something similar to this as I recall:

    if(is_array ($foo) || $foo instanceof Countable)
    {
        if count ($foo) {
            do something
        }
    }

    This works with PHP 7.0, 7.1 and 7.2

    Google...

    Warning: count(): Parameter must be an array or an object that implements Countable

    for further info.

  4. You can ask your host if they offer MariaDB 10.2 or lower on a different server. That server will also need to support the other requirements as well. Or change to a host that supports the requirements of phpVMS 5.5.2.72 fully.

     

    smartCARS 2 won't work in phpVMS v7 - and no updated on smartCARS 3 in a long time. The only present ACARS that works in phpVMS v7 is vmsACARS. It is being actively developed, as is phpVMS v7.

     

     

  5. 4 hours ago, MarlonM said:

    Hi,

     

     

    I have several issues.

     

     

    I purchased the Auto Assign V1.4 from Crazycreatives but I can't make it work. I followed all steps in the instructions but when pilots try to access the module it loads a blank page if StylaSking (a sking we are using)  is active or gets "Error: Purchase Verification Failed" with the default skin active. Also, I am getting the following message when resetting assignments: 

     

    "Deprecated: Non-static method AutoAssignData::getstartitineraryid() should not be called statically in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 189 

     

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 211 

     

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 289" 

     

    I just copied the first 3 error messages but it repeats several times. 

     

    I attempt to get help from the CrazyCreatives forum but can get in or submit the contact form as also asks me for a re-captcha. Hopefully someone here can Help me.

     

    image.png.e9073b03f9cc18f501d70d25c34a7b42.pngimage.png.ecd4334260f1bdcd68b9d1a189d2ca42.png

     

     

    phpVMS version?

    PHP version?

    MySQL/MariaDB version?

    What skin are you using? Provide a link to the skin.

  6. A little "progress"

    In comparing the send.xml files when connected to his site and then connected to my site, his doesn't fully populate the send.xml with all the data for the selected flight.

    Now to find out why......

     

    Oddly, this shows below the ACARS Map on his site. It's the correct data for the flight I put in kACARS. Notice the pilot number is incorrect (happens with any pilot).

    image.png

  7. I can bid on a flight, but it won't load in kACARS.

    The bid shows in the bid table.

     

    Hoping to have time tomorrow to swap the files out and see if that fixes it.

     

    Barring that working, I can download his site and upload to my host to check if it works there.

     

    As far as I know, no one else at vmshost has reported an issue with 5.5.2 or 5.5.2.72 and kACARS_Free.

  8. Thanks!

    Yeah, Ithought it was weird being able to log in but not retrieve flights.

    Already tried php 7.0 and 7.1 without success.

    Also tried multiple flight numbers - no spaces or odd characters - double and triple checked.

    No errors show in the error_log file. Error logging is on, but not sure how vmshost is set up for logging of errors. Something more to look at there.

    Every flight number entered, when requesting the flight info, the receive.xml show flightStatus2. Same if I bid a flight and change kACARS to not use Search by Flight #.

     

    Great idea about trying my working kACARS module file and data class file - something to try over the weekend.

     

    One other thing is I can set up a charter flight and start it.

  9. kACARS_Free: 1.0.1.5

    phpVMS: 5.5.2.72

    PHP: 7.2

    MariaDB: 10.2.44

    Hosted at: vmshost

     

    "No Flight Found!" when attempting to retrieve a schedule.

     

    Can log in fine and connect to FS.

     

    This is at a friends site that I have full access to. I can log into kACARS_Free but not retrieve the flight data.

    receive.xml shows flightStatus 2 - which triggers the "No Flight Found!" in kACARS.

     

    The schedule is in the DB and enabled.

    The aircraft is in the DB and it's ID shown in the schedule. Aircraft is enabled.

    The airline is in the DB and enabled.

    The airports are in the DB.

     

    This same version of kACARS_Free works fine on my own site.

    The only difference is that I have MySQL 5.7.41 instead of MariaDB 10.2.44

    My site is hosted elsewhere.

     

    I compared his kACARS_Free site module to mine and they are exactly the same.

     

    Anyone have a clue where to look or how to fix this issue?

     

    Thanks

  10. As far as I recall, there is not. A bid gets shown in the bid table. And I don't think "Departed" is shown anywhere until the PIREP is filed. There is ACARS data listed in the acarsdata table, but may not have the data you need.

     

    There is a way to block another pilot from bidding the same schedule as another pilot who has already booked that scheduled flight. 

  11. Since you are using phpVMS 5.5.2 and just starting out, I'd recommemd a completely new installation. Don't attempt to use this thread to "update" reCaptcha as 5.5.2 already has reRaptcha v2.

     

    Don't edit any core files. Just add a theme/skin and a few basic modules. Any module edits should be done to the files in the module only.

     

    Get used to the program before editing any core files. If you can't get something to work in the base program that works for everyone else, it's not an issue with the core files.

  12. You should be using https as many modern browsers won't load http without interaction of the user.

    Does your site have a current SSL certificate?

     

    Your local.config shows https

     

    The page loads correctly using http

    It doesn't load correctly using https

     

    Is TFDI your host? If so, contact them for assistance.

  13. 20 hours ago, LesJar said:

    We had the same problem with the forum and I fixed the security check easily and properly.  However of course I cannot show you the code changes on here as it id payware and one of the things used was the airlines local key.

    However ProAvia is correct in saying that yes it is possible to get the Forum running again . 

    [1] try an e-mail to Php-Mods.eu first as then you have proof that you have tried to contact them reasonably first before making any software changes.  This is helpful should they ever take legal action against you for altering their code.

    [2] make a backup of all the forum software before you start and have it stored offline by the CEO of the virtual airline as proof that you had the original code in the first place

    [3] modify the code and comment that it has been done for the reason that the on-line security check with PHP-mods.eu is no longer working etc.

     

    This should get you back running and give you some sort of legal backing for making the modification to such code.

     

    Sound advice!

×
×
  • Create New...