Jump to content

Steve Bartlett

Members
  • Posts

    188
  • Joined

  • Last visited

Posts posted by Steve Bartlett

  1. On the Recent Flights on the front Page of the website it keeps showing the date of  01/01/1970, it should show the date the Pirep was filed.

    Here is the code I am using:

                <?php # RECENT FLIGHTS ;?>
                <div class="col-md-6">
                <div class="hr-title hr-long center"><abbr>Recent Flights</abbr></div>
                    <div class="table-responsive">
                          <table class="table table-condensed table-hover">
                            <thead>
                              <tr>
                                <th>Flight</th>
                                <th>Route</th>
                                <th>Date</th>
                              </tr>
                            </thead>
                            <tbody>
                                <?php

                                $pirep_list = PIREPData::getRecentReportsByCount(5);
                                if($pirep_list){
                                foreach($pirep_list as $pirep) {
                                ?>
                                <tr>
                                <td><a href="<?php echo url('/pireps/viewreport/'.$pirep->pirepid);?>"><?php echo $pirep->code.$pirep->flightnum?></a></td>
                                <td><?php echo $pirep->depicao.' - '.$pirep->arricao;?></td>   
                                <td><?php echo date(DATE_FORMAT, strtotime($report->submitdate)); ?></td>
                              </tr>
                                <?php
                                } }
                                ?>

  2. Loading my second round of schedules using the import schedules. I did save it as csv. The first round is fine, this time I get this, and that is just part of it. Does anybody know what is going on?

    Airline with code �L1�bma]���u���t���(gZ��[Wvr���2���u{���`�M� does not exist! Skipping...

    Airline with code ��9fe�q�wW@�(^��wd�b�h �a��8g.J pC�*Xx8��r�bV�`|Xƻ�cǵ�YU3J��Ý8b�3+��(�������Q��u���K>Q�ELKM2�#'��vi~����vl�wu8+�z��HH�J����:�)���� ~��L��\�E\O*�t@G�1��l�m��~C�*u��G.R(:-�ys^D��i7�QR��8 does not exist! Skipping...

    Airline with code �H )�7 �5)���k�dB|UtvaD�����p|�Fl&0�_�*�3�n'LE�/p���m����&]����8fI��r�S4�d7y��`� does not exist! Skipping...

    Airline with code ��n���ί�I�R���3U�~��c�nrF:_�*�P����}���-p�Tp�l�r��ۜ�4LZéO� does not exist! Skipping...

    Airline with code �� does not exist! Skipping...

  3. I just approved a bunch of Pireps and this is what the error is that I am getting:

    Fatal error: Call to undefined method SchedulesData::changeFlownCount() in /home/steve14958/public_html/core/common/PIREPData.class.php on line 1218

    And here is what line 1216 through 1218 says:

    if($status == PIREP_ACCEPTED) {

    self::calculatePIREPPayment($pirepid);

    SchedulesData::changeFlownCount($pirep_details->code, $pirep_details->flightnum, '+1');

  4. The only thing I have been able to find is this, and that file is not even in there:

    "Delete the core/lib/ofc_image_upload.php file, or replace it with the one from the latest download.

    ofc_image_upload.php is something that's not even used. The rest of the library is just an interface to the charts, which are used internally, and no URL parameters are passed in."

  5. I am getting this error when somebody tries to download XACARS, FSACARS and FSPassenger config files. Any ideas?

    Notice: The template file "/home/xxxxxxx//core/templates/xacars_config.php.tpl" doesn't exist in /home/xxxx/public_html/core/classes/TemplateSet.class.php on line 248

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/core/classes/TemplateSet.class.php:248) in/home/xxxxx/public_html/core/classes/Util.class.php on line 58

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/core/classes/TemplateSet.class.php:248) in/home/xxxx/public_html/core/classes/Util.class.php on line 59

    Warning: Cannot modify header information - headers already sent by (output started at /homexxxxx8/public_html/core/classes/TemplateSet.class.php:248) in/home/xxxx/public_html/core/classes/Util.class.php on line 60

  6. At the top of the Admin Center there is so supposed to that graph that shows how many Pireps were submitted each day, all I have is a box with this in it, how do I fix it:Open Flash ChartJSON Parse Error [syntax Error]Error at character 0, line 1:0:

  7. Here are the errors I am getting on the Front Schedules, I imagine just like the events problem, this has to do with php version 5.5.

    Strict Standards: Non-static method FrontSchedulesData::findaircrafttypes() should not be called statically, assuming $this from incompatible context in /home/steve14958/public_html/core/modules/FrontSchedules/FrontSchedules.php on line 26

    Strict Standards: Non-static method FrontSchedulesData::findcountries() should not be called statically, assuming $this from incompatible context in /home/steve14958/public_html/core/modules/FrontSchedules/FrontSchedules.php on line 27

    And the one for the Hub Transfer request form, also a static issue:

    Strict Standards: Non-static method HubTransferData::GetAllHubs() should not be called statically, assuming $this from incompatible context in /home/steve14958/public_html/core/modules/HubTransfer/HubTransfer.php on line 30

  8. For some reason I am getting this error: Warning: Invalid argument supplied for foreach() in/home/xxxx/public_html/lib/skins/vairline/frontpage_main.tpl on line 12

    Here are the lines 9 through 15 with foreach ($flights as $flight) being line 12

    <?php

    $flights = PIREPData::getRecentReportsByCount(10);

    $string = "";

    foreach ($flights as $flight)

    {

    $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';

    }

×
×
  • Create New...