Jump to content

mitcheinfo

Members
  • Posts

    95
  • Joined

  • Last visited

Posts posted by mitcheinfo

  1. The problem is in the variable string I pass manually and no longer get the error.

    any solution

    $epoch = (string) $info->times[0]->sched_out;

    $epoch = 1344988800;

    $dt = new DateTime("@$epoch");

    // $dt = new DateTime('@'.$epoch); // convert UNIX timestamp to PHP DateTime

    echo $dt->format('H:i'); // output = 2012-08-15 00:00:00

  2. Hi Vangelis one help please

    Version simpilot 5.5.1

    Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character' in /homepages/10/d328219951/htdocs/core/templates/SimBrief/SimBrief.php:64 Stack trace: #0 /homepages/10/d328219951/htdocs/core/templates/SimBrief/SimBrief.php(64): DateTime->__construct('@') #1 /homepages/10/d328219951/htdocs/core/classes/TemplateSet.class.php(238): include('/homepages/10/d...') #2 /homepages/10/d328219951/htdocs/core/classes/TemplateSet.class.php(181): TemplateSet->getTemplate('SimBrief/SimBri...', false, true, false) #3 /homepages/10/d328219951/htdocs/core/classes/Template.class.php(82): TemplateSet->showTemplate('SimBrief/SimBri...') #4 /homepages/10/d328219951/htdocs/core/classes/CodonModule.class.php(92): Template::show('SimBrief/SimBri...') #5 /homepages/10/d328219951/htdocs/core/modules/SimBrief/SimBrief.php(12): CodonModule->render('SimBrief/SimBri...') #6 [internal function]: SimBrief->index() #7 /homepages/10/d328219951/htdocs/core/classes/M in /homepages/10/d328219951/htdocs/core/templates/SimBrief/SimBrief.php on line 64

  3. Clicking save me out :

    Strict Standards: Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /homepages/10/d328219951/htdocs/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135

    I`m sorry forgive, and arrange.

    public function editSettings($setting_id,$moduleenabled,$landing_rate, $send_mail_to_admin, $send_mail_to_pilot, $admin_code)

    Change

    public static function editSettings($setting_id,$moduleenabled,$landing_rate, $send_mail_to_admin, $send_mail_to_pilot, $admin_code)

  4. Hi Vangelis, one help please

    Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in/homepages/10/d328219951/htdocs/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 52

    and

    Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in/homepages/10/d328219951/htdocs/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 54

    Tanks

  5. What I have already solved,

    PilotData.class

    if (Config::Get('TRANSFER_HOURS_IN_RANKS') === true) {

    $totalhours = $pilot->totalhours + $pilot->transferhours;

    } else {

    $totalhours = $pilot->totalhours + $pilot->transferhours;

    }

    # Configure what we want to show on each line

    $output = array();

    $output[] = $pilotcode . ' ' . $pilot->firstname . ' ' . $pilot->lastname;

    $output[] = $pilot->rank . ', ' . $pilot->hub;

    $output[] = 'Total Flights: ' . (floatval($pilot->totalflights) + floatval($pilot->payadjust));

    $output[] = 'Total Hours: ' . $totalhours;

  6. Hi all, I need help.

    We've cleaned up the database PIREPs, but now it seems that every time a pilot reports a flight number and time of flight pilot started from scratch.

    You know how I can fix to keep adding, and changing table pilot but a new flight report back to the counter.

    Thank You

  7. Hello Vangelis

    When will approve or edit for PIREP I get this error?

    Notice: The template file "/homepages/10/d328219951/htdocs/admin/templates/fsfk_log_flightimages.php" doesn't exist in /homepages/10/d328219951/htdocs/core/classes/TemplateSet.class.php on line 231

    if (!file_exists($tpl_path)) {

    trigger_error('The template file "' . $tpl_path . '" doesn\'t exist');

    return false;

    }

  8. Hi

    I recently migrated the database to a new and a fresh installation of phpvms system.

    We import all information to the new databases.

    When reporting a new flight database drivers do not respect the imported hours.

    You know how I can fix it? MySQL5 version

    Forgive my English

    thank you very much

  9. I'm looking for that information, but not to this?

    I am not real familiar with FSFK but I did get the images all working in phpvms some time ago and I have never come across this message. I am assuming it shows up in the FSFK client as I do not see where it would come from on the script side after a quick look. I guess I would ask if using or not using the code part of the flight number makes a difference? Is there any error log form the site, either the phpvms error log or the server error log? If it is not finding the flight number I would imagine the error starts around this in the controller for FSFK

    ??? This part of the code does not match????

    $flightinfo = SchedulesData::getProperFlightNum($xml->FlightNumber);

    $code = $flightinfo['code'];

    $flightnum = $flightinfo['flightnum'];

×
×
  • Create New...