ARV187 Posted April 21, 2019 Report Share Posted April 21, 2019 (edited) Hi, someone know how fix this error messages? Thank you! Edited April 23, 2019 by ARV187 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted April 21, 2019 Administrators Report Share Posted April 21, 2019 This is probably not a kACARS_Free issue. The issue is with your SchedulesData.class.php Search the forums for the phrase "non static method". This has been covered many times before. And if you have this error here, most probably you will eventually have it in other places as well. 1 Quote Link to comment Share on other sites More sharing options...
ARV187 Posted April 21, 2019 Author Report Share Posted April 21, 2019 I know, There are a post with the issue static method, I fixed the ones that I saw in the post. I will check again!!. So...."cannot modify header information"? any clue? Thanks! Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted April 21, 2019 Administrators Report Share Posted April 21, 2019 Fix the first one and see if the header info one goes away. 1 Quote Link to comment Share on other sites More sharing options...
ARV187 Posted April 22, 2019 Author Report Share Posted April 22, 2019 It was just the only line one that had not changed more than a year ago with "static". 😅 SchedulesData.class.php L739 public static function getLatestBid($pilotid). I can't reproduce the error again nor before applying the fix, It only appeared once. Seems that the "you may be able to continue" was serious and has not reappeared. Will the "cannot modify header information" be fixed after the change? I found the file, in L394 say: "header('Content-type: text/xml');" public function sendXML($params) { $xml = new SimpleXMLElement("<sitedata />"); $info_xml = $xml->addChild('info'); foreach($params as $name => $value) { $info_xml->addChild($name, $value); } header('Content-type: text/xml'); $xml_string = $xml->asXML(); echo $xml_string; # For debug #$this->log("Sending: \n".print_r($xml_string, true), 'kacars'); return; } Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted April 22, 2019 Administrators Report Share Posted April 22, 2019 Did changing SchedulesData.class.php fix the issue? Or are you still seeing the "header" issues? Sometimes it could be a transient issue. Clicking on "Continue" usually will allow the application to continue - and you may not see the issue again. Quote Link to comment Share on other sites More sharing options...
ARV187 Posted April 22, 2019 Author Report Share Posted April 22, 2019 The application allow me to continue and I never saw the issue again, but I wanted fix the issue anyway, and there are a forgotten row without static function hehe. So, thanks for your help! Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted April 23, 2019 Administrators Report Share Posted April 23, 2019 You're welcome! Glad you got it sorted. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.