Jump to content

Rev v2.1.934-112-g46862a2 - moved ledger into its own data class


Nabeel

Recommended Posts

  • Moderators

Everything seems fine except for the maintenance script even after running it all seems ok but the following errors are seen,

when running the script the output given is,

Pireps are still at 0

and

Notice: Undefined variable: total in /core/common/PilotData.class.php on line 554 EZY0001 - found flight hours for number

Doesn't seem to effect anything on the site though.

Link to comment
Share on other sites

  • Moderators

I replaced that function with Jeffs update in the other post and it seems to work ok again now for the public profile the total hours are displayed, still the same "0" for pireps and hours running the maintenance script.

public static function getPilotHours($pilotid) {

       $sql= 'SELECT 
                SUM(TIME_TO_SEC(`flighttime_stamp`)) AS `total`
              FROM `'.TABLE_PREFIX.'pireps`
              WHERE `accepted`=' . PIREP_ACCEPTED.' AND `pilotid`='.$pilotid;         

       $totaltime = DB::get_row($sql);
       if(!$totaltime) {
           $totaltime = '0';
       } else {
               $totaltime = explode(':', Util::secondsToTime($totaltime->total));
               $totaltime = $totaltime[0].'.'.$totaltime[1];
       }

       return $totaltime;
   }

Link to comment
Share on other sites

  • Administrators

Still checking on this one but looks good so far.....

Loving the activity feed, just need to find that code i used and wire that up to my twitter feed now :)

I can integrate that in, actually. I'll add a setting

  • Like 1
Link to comment
Share on other sites

Currently for some reason some pilots hours are at 0 this morning and i have this in the logs,

I am having the same issue. I put a bug report in on the Github website. Seems to happen after accepting new PIREPs so you may want to suspend operations because it modifies the SQL table to 0 as well.

Link to comment
Share on other sites

  • Moderators

Ok so i have been digging about and where ever i am using for example

<?php Template::Show('core_navigation.tpl');?>

<?php Template::Show('footer.tpl');?>

Also i know why my mage is not showin either,

MainController::Run('Tour', 'details', $id) No longer works so its in the codon config i believe

Its not showing them just defaults to the core templates not my skins, how strange.

Link to comment
Share on other sites

  • Administrators

Now the admin side is displaying using my main css lol.

Its all good fun running a VA :)

There were changes in the template code - can you let me know which pages/templates were doing it?

Is it in add-on pages/modules?

Link to comment
Share on other sites

×
×
  • Create New...