Jump to content

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


Recommended Posts

  • Moderators
Posted

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.

  • Moderators
Posted

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

PHP Notice: Undefined variable: total in /core/common/PilotData.class.php on line 554

  • Moderators
Posted

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;
   }

  • Administrators
Posted

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
Posted

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.

  • Moderators
Posted

Nabeel, im not sure which update has done it may have been this one or the next but some pages on my site are reading from the default core template files and not the skins folder.

Trying to track down what's causing.

  • Moderators
Posted

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.

  • Moderators
Posted

Just looking at the codon config this line is missing at the bottom.

define('SKINS_PATH', LIB_PATH.DS.'skins'.DS.CURRENT_SKIN);

I will readd it to see what happens :)

  • Administrators
Posted

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?

×
×
  • Create New...