Jump to content

NWA1999

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by NWA1999

  1. Hello 

     

    About 2 years ago we upgraded to PHP 7 from PHP 3 (i know that I waited a long time to ask) .However we are still running phpVMS 2.1.936. Ever since upgrading we have been running into weird database issues.  Basically if you try to delete a route a few (few because I don't know how many sometimes  2, 3,7) days later the routes will come back.  Same thing when trying to edit routes. Edit the route say you want to make KLM 1234 go EHAM-EGLL instead of EHAM-LOWW. I edit it all is good, a few days later KLM 1234 is  back to EHAM-LOWW.  Just this past weekend i also noticed this same issue when trying to delete PIREPs
     

    I can't for the life of me figure out where I begin looking for the issue (not an expert coder however I do know a bit and learning) 

    Any ideas as to where this issue might be or would this be more of a general SQL/PHP issue suited for stackoverflow?

    Thanks 

    Robbie 

  2. Hi,

    I'm trying to code functionality within the PIREPData class to divide the inputted passenger amount up into first class, business class,  and economy class,  all randomized but all passengers will make it.  Here's what I've coded 

      $ac = OperationsData::getAircraftByReg($pirepdata['aircraft']);
            $rem=$pirepdata['load'];
            if ($rem<=$ac->firstclass) {
              $first=rand(0,$rem);
              $rem-=$first;
            }
            else {
              $first=rand(0,$ac->firstclass);
              $rem-=$first;
            }
                
            if ($rem<=$ac->busclass) {
              $bus=rand(0,$rem);
              $rem-=$bus;
            }
            else {
              $bus=rand(0,$ac->busclass);
              $rem-=$bus;
            }
              $econ=$rem;
              $rem-=$econ;
              $pirepdata['fclasscount']=$first;
              $pirepdata['bclasscount']=$bus;
              $pirepdata['eclasscount']=$econ;

    However all passengers get put in economy. I know my issue is lines like $ac->firstclass, and $ac->busclass. What should these lines be? These values are in my  SQL aircraft table as firstclass, and busclass  columns of each row (aircraft) .

     

    Thanks 

    Robbie 

     

     

  3. sorry I did not mention this I have-

    Invalid argument supplied for foreach() in /home/skyteam/public_html/lib/skins/nwa_1.0/statistics/statistics_index.tpl on line 226

    I am not sure this is affecting it but line 226 reads

    foreach($routes as $route)

     

  4. There is no further error now- Thank You!

    However, when I bid the flight it transfers to smartCARS, and shows up on my site as a bid in the pilot centre. When I file the PIREP, I do not receive any errors and then nothing happens. It does not go to our pilot admin to approve our anywhere else. It's like it disappears after being filed. 

    smartCARS does show all the history but it seems our site does not show the PIREP. Its like its only half connected to the SQL.

  5. Hi

    I'm unable to file PIREPs after a upgrade from phpVMSv2 to v5 ,auto or manual im getting this error in the error log PHP Warning:  Creating default object from empty value in /home/****/public_html/core/common/PIREPData.class.php on line 337

    Any Ideas? 

    Robbie 

  6. Hi

    We've setup a test site for our airline as we are making the move to a new provider. Our worldAcars doesnt work on the test site. Ive edited the URLs in settings to our new URL. I can login, get my flight bid, start my flight, end it, however i cant file my PIREP. I just get "Try Again" in red where it usually reads "PIREP Filed". I also don't  show up on the map or flight board while im flying. We are using a customized version of ACARS (by FS-Products). IEverything was copied from the old cpanel to the  new.

    Is this even supported anymore?   

    Thanks,

    Robbie

×
×
  • Create New...