Hi, someone know how fix this error messages? Thank you!
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.
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!
Fix the first one and see if the header info one goes away.
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; }
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.
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!
Youâre welcome! Glad you got it sorted.