Administrators Nabeel Posted April 18, 2011 Administrators Report Posted April 18, 2011 Changed Files: + core/common/LedgerData.class.php m core/common/PIREPData.class.php m core/common/PilotData.class.php m unittest/Tests/SchedulePIREPTest.php m unittest/utils/paycheck.php moved ledger into its own data class View complete changes Download from here
Moderators mark1million Posted April 21, 2011 Moderators Report Posted April 21, 2011 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
Moderators mark1million Posted April 21, 2011 Moderators Report Posted April 21, 2011 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 mark1million Posted April 22, 2011 Moderators Report Posted April 22, 2011 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 mark1million Posted April 22, 2011 Moderators Report Posted April 22, 2011 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 Nabeel Posted April 22, 2011 Author Administrators Report Posted April 22, 2011 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 1
Guest Posted April 22, 2011 Report Posted April 22, 2011 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 mark1million Posted April 23, 2011 Moderators Report Posted April 23, 2011 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 mark1million Posted April 23, 2011 Moderators Report Posted April 23, 2011 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 mark1million Posted April 23, 2011 Moderators Report Posted April 23, 2011 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
Moderators mark1million Posted April 23, 2011 Moderators Report Posted April 23, 2011 Now the admin side is displaying using my main css lol. Its all good fun running a VA
Administrators Nabeel Posted April 23, 2011 Author Administrators Report Posted April 23, 2011 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?
Moderators mark1million Posted April 23, 2011 Moderators Report Posted April 23, 2011 Currently all of them, when you go to admin the pages load within the existing active pilots skin minus the nav bar on the left.
Administrators Nabeel Posted April 23, 2011 Author Administrators Report Posted April 23, 2011 But where did you see it originally?
Moderators mark1million Posted April 23, 2011 Moderators Report Posted April 23, 2011 Sorry the most recent update caused the admin template to get screwed up. Rev v2.1.934-121-gd9f78aa - fixed approve all pirep bug, changelog update
Moderators mark1million Posted April 23, 2011 Moderators Report Posted April 23, 2011 Ok i get you now, it was with the added pages using the api and also i have created other php pages and linked in to the codon config which started messing about.
Recommended Posts